Skip to content

Commit 927c08d

Browse files
Merge pull request #20 from telerik/changes-2-0
Changes for 2.0.0
2 parents 76644e0 + 2e3a2c3 commit 927c08d

File tree

99 files changed

+2100
-1747
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+2100
-1747
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11

2-
.vs
32
.asset-cache/
43
.dockerignore
54
.DS_Store
65
.editorconfig
76
.jekyll-metadata
87
.ruby-version
8+
.vs
99
/_assets/
1010
/_build/
1111
/_buildApi/

_config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ navigation:
3030
"common-features":
3131
title: "Common Features"
3232
position: 15
33+
"upgrade":
34+
title: "Upgrade"
35+
position: 17
36+
"upgrade/breaking-changes":
37+
title: "Breaking Changes"
3338
"how-to":
3439
title: "How To"
3540
position: 20

_contentTemplates/chart/link-to-basics.md

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,17 @@ This article assumes you are familiar with the [chart basics]({%slug components/
88
Bar and Column charts can take the color of the series item from the `ColorField` of the data source. You can pass a valid CSS color (for example, `#abcdef`, `#f00`, or `blue`).
99

1010
````CSHTML
11-
@using Telerik.Blazor
12-
@using Telerik.Blazor.Components.Chart
11+
Colors per series item
1312
1413
<TelerikChart>
15-
<TelerikChartSeriesItems>
16-
<TelerikChartSeries Type="ChartSeriesType.Bar" Data="@theData" ColorField="@nameof(MyChartDataModel.Color)"
17-
Field="@nameof(MyChartDataModel.ItemValue)" CategoryField="@nameof(MyChartDataModel.Category)">
18-
</TelerikChartSeries>
19-
</TelerikChartSeriesItems>
14+
<ChartSeriesItems>
15+
<ChartSeries Type="ChartSeriesType.Bar" Data="@theData" ColorField="@nameof(MyChartDataModel.Color)"
16+
Field="@nameof(MyChartDataModel.ItemValue)" CategoryField="@nameof(MyChartDataModel.Category)" />
17+
</ChartSeriesItems>
2018
21-
<TelerikChartTitle Text="Revenue per product"></TelerikChartTitle>
19+
<ChartTitle Text="Revenue per product" />
2220
23-
<TelerikChartLegend Position="ChartLegendPosition.Right">
24-
</TelerikChartLegend>
21+
<ChartLegend Position="ChartLegendPosition.Right" />
2522
</TelerikChart>
2623
2724
@code {
@@ -31,8 +28,9 @@ Bar and Column charts can take the color of the series item from the `ColorField
3128
public double ItemValue { get; set; }
3229
public string Color { get; set; }
3330
}
31+
3432
public List<MyChartDataModel> theData = new List<MyChartDataModel>
35-
{
33+
{
3634
new MyChartDataModel
3735
{
3836
Category = "Product 1",
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
#event-callback-can-be-async
22
>tip The event is an `EventCallback` and its type can be `void`, or it can also be asynchronous and return `async Task`.
3+
#end
4+
5+
#ensure-nuget-packge-for-upgrade
6+
Make sure that you have a NuGet feed source with the version you want to upgrade to. This is usually the [Telerik NuGet Feed]({%slug installation/nuget%}), but you can also use a local feed from [our MSI installer]({%slug installation/msi%}) or [ZIP archive]({%slug installation/zip%}).
37
#end

_contentTemplates/common/get-started.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,17 +91,13 @@ To get access to the UI for Blazor components, follow these steps:
9191

9292
**CSHTML**
9393

94-
@using Telerik.Blazor.Components.Button
95-
9694
<TelerikButton>Say Hello</TelerikButton>
9795
9896
1. Optionally, hook up a click handler that will show a message. The resulting view should look like this:
9997

10098
**CSHTML**
10199

102100
@page "/"
103-
104-
@using Telerik.Blazor.Components.Button
105101

106102
<TelerikButton OnClick="@SayHelloHandler" Primary="true">Say Hello</TelerikButton>
107103

_contentTemplates/treeview/basic-example.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#basic-example
22

33
````CSHTML
4-
@using Telerik.Blazor.Components.TreeView
4+
Sample treeview bound to self-referencing flat data. Also uses the built-in icons from the Telerik suite
55
66
<TelerikTreeView Data="@FlatData">
7-
<TelerikTreeViewBindings>
8-
<TelerikTreeViewBinding IdField="Id" ParentIdField="ParentIdValue" ExpandedField="Expanded" TextField="Text" HasChildrenField="HasChildren" IconField="Icon"></TelerikTreeViewBinding>
9-
</TelerikTreeViewBindings>
7+
<TreeViewBindings>
8+
<TreeViewBinding IdField="Id" ParentIdField="ParentIdValue" ExpandedField="Expanded" TextField="Text" HasChildrenField="HasChildren" IconField="Icon" />
9+
</TreeViewBindings>
1010
</TelerikTreeView>
1111
1212
@code {

common-features/font-icons.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ position: 1
1010

1111
# Built-in Icons
1212

13-
The UI for Blazor suite comes with a set of font icons that you can use in various places like in the Button component.
13+
The UI for Blazor suite comes with a set of font icons that you can use in various places like in the Button component, or as a standalone component.
1414

1515
To use a predefined font icon, you can set the corresponding property to a member of the `Telerik.Blazor.IconName` static class. The Visual Studio intellisense should provide you with the available options.
1616

@@ -36,27 +36,26 @@ You can find the full list of available icons in the [Kendo UI Web Font Icons Li
3636
>caption Render a standalone font icon through the TelerikIcon component
3737
3838
````CSHTML
39-
@using Telerik.Blazor
40-
@using Telerik.Blazor.Components
41-
42-
<TelerikIcon IconName="@IconName.Audio" /> @* will render the audio speaker icon *@
39+
@using Telerik.Blazor.Components.Common.Icon
4340
44-
<TelerikIcon Class="oi oi-home" /> @* home icon from OpenIconic, assuming you have loaded the font on the page *@
41+
<TelerikIcon Icon="@IconName.Audio" /> @* will render the audio note icon *@
4542
46-
<TelerikIcon Class="my-font-icon-class" /> @* In this simple example, the built-in Telerik icon font matching the glyph position will be used, unless you provide an actual font icon of your own to override the values *@
43+
<TelerikIcon IconClass="oi oi-home" /> @* home icon from OpenIconic, assuming you have loaded the font on the pag, you can use your own CSS classes and font icon fonts *@
4744
48-
<style>
49-
.my-font-icon-class::before {
50-
font: myFontIconFont; /* use actual font icon font */
51-
content: "\e123"; /* use actual glyph position */
52-
}
53-
</style>
45+
<TelerikIcon ImageUrl="https://demos.telerik.com/kendo-ui/content/shared/icons/sports/snowboarding.png" /> @* an image by URL, renders an actual <img /> tag *@
5446
````
5547

5648
>caption The result from the snippet above
5749
5850
![](images/standalone-font-icons.png)
5951

52+
The priority order of the Icon properties, if more than one is defined, is
53+
54+
1. ImageUrl
55+
2. Icon
56+
3. IconClass
57+
4. SpriteClass
58+
6059

6160
## See Also
6261

346 Bytes
Loading

common-features/input-validation.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,7 @@ Simple textbox-like inputs do not have any special behavior. You need to bind th
3434
>caption How to validate inputs
3535
3636
````CSHTML
37-
@using Telerik.Blazor.Components.TextBox
38-
@using Telerik.Blazor.Components.NumericTextBox
39-
@using Telerik.Blazor.Components.DateInput
40-
@using Telerik.Blazor.Components.DatePicker
41-
@using Telerik.Blazor.Components.TimePicker
42-
@using System.ComponentModel.DataAnnotations
37+
@using System.ComponentModel.DataAnnotations // used for the model class attributes
4338
4439
<EditForm Model="@person" OnValidSubmit="@HandleValidSubmit">
4540
<DataAnnotationsValidator />
@@ -125,8 +120,7 @@ The DropDownList always has an item selected - the first item from its data sour
125120
>caption How to validate a dropdownlist
126121
127122
````CSHTML
128-
@using Telerik.Blazor.Components.DropDownList
129-
@using System.ComponentModel.DataAnnotations
123+
@using System.ComponentModel.DataAnnotations // used for the model class attributes
130124
131125
<EditForm Model="@person" OnValidSubmit="@HandleValidSubmit">
132126
<DataAnnotationsValidator />

components/animationcontainer/overview.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ To use the animation container, add the `TelerikAnimationContainer` tag.
1717
>caption How to use the Animation Container
1818
1919
````CSHTML
20-
@using Telerik.Blazor.Components.AnimationContainer
21-
@using Telerik.Blazor.Components.Button
22-
@using Telerik.Blazor
20+
Click the button to toggle the visibility of the customized popup
2321
2422
<TelerikAnimationContainer @ref="myPopupRef" Top="300px" Width="100px" Height="100px" AnimationType="AnimationType.ZoomOut" Class="k-popup">
2523
My content goes here. The "k-popup" class adds some background and borders which you can define through your own styles instead.
@@ -28,7 +26,7 @@ To use the animation container, add the `TelerikAnimationContainer` tag.
2826
<TelerikButton OnClick="@ToggleContainer">Toggle Animation Container</TelerikButton>
2927
3028
@code {
31-
Telerik.Blazor.Components.AnimationContainer.TelerikAnimationContainer myPopupRef;
29+
Telerik.Blazor.Components.TelerikAnimationContainer myPopupRef;
3230
3331
public void ToggleContainer()
3432
{
@@ -39,8 +37,8 @@ To use the animation container, add the `TelerikAnimationContainer` tag.
3937

4038
The animation container exposes the following properties and methods:
4139

42-
* `Show()`, `Hide()` and `Toggle()` - to control whether the container is shown.
43-
* `Width` and `Height` - to control its size.
40+
* `Show()`, `Hide()` and `Toggle()`; `ShowAsync()`, `HideAsync()` and `ToggleAsync()` - to control whether the container is shown.
41+
* `Width` and `Height` - to control its [size]({%slug common-features/dimensions%}).
4442
* `Top` and `Left` - to control its offset from its parent with special positioning (`relative`, `absolute`, `fixed`).
4543
* `AnimationType` and `AnimationDuration` to control the way it is shown and hidden. The animation duration is in milliseconds (defaults to `300`), and the type is of the `Telerik.Blazor.AnimationType` enum with the following options:
4644
* SlideUp,
@@ -61,9 +59,7 @@ The animation container exposes the following properties and methods:
6159
>caption Explore the animation options
6260
6361
````CSHTML
64-
@using Telerik.Blazor.Components.AnimationContainer
65-
@using Telerik.Blazor.Components.Button
66-
@using Telerik.Blazor
62+
Choose a new animation from the dropdown and toggle the container
6763
6864
<TelerikAnimationContainer @ref="myPopup" Top="300px" Width="200px" Height="200px" AnimationType="@AnimType" Class="my-popup">
6965
My content goes here.<br />

0 commit comments

Comments
 (0)