Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
c98f8bc
docs(grid): hierarchy
marin-bratanov Sep 13, 2019
c9bf6e0
chore(grid): find-replace tag changes
marin-bratanov Sep 13, 2019
539a7c9
chore(common): kb for breaking changes in 2.0
marin-bratanov Sep 13, 2019
99a3bdf
chore(common): fill in info in the breaking changes kb
marin-bratanov Sep 13, 2019
08e1511
chore(common): inputs changes
marin-bratanov Sep 13, 2019
cea738f
chore(grid): find-replace columns change
marin-bratanov Sep 13, 2019
82bdf6a
chore(icon): icon changes for 2.0.0
marin-bratanov Sep 13, 2019
efa92c1
chore(calendar): changes for 2.0.0
marin-bratanov Sep 13, 2019
6a41630
chore(button): update for 2.0.0
marin-bratanov Sep 13, 2019
5fe142b
chore(chart): main find-replace for 2.0.0
marin-bratanov Sep 13, 2019
af75b9f
chore(chart): second find-replace for 2.0.0
marin-bratanov Sep 13, 2019
a90780e
chore(chart): updates for 2.0.0
marin-bratanov Sep 13, 2019
f38774e
chore(dateINput): updates for 2.0.0
marin-bratanov Sep 14, 2019
386f42d
chore(datePicker): updates for 2.0.0
marin-bratanov Sep 14, 2019
1539ff7
chore(dropdownlist): updates for 2.0.0
marin-bratanov Sep 14, 2019
543c9b0
chore(grid): updates for 2.0.0
marin-bratanov Sep 14, 2019
81a97e2
chore(grid): updates for 2.0.0
marin-bratanov Sep 14, 2019
01e6013
chore(grid): updates for 2.0.0
marin-bratanov Sep 14, 2019
394f560
chore(chart): update snippet for 2.0.0
marin-bratanov Sep 14, 2019
a92f462
chore(menu): updates for 2.0.0
marin-bratanov Sep 14, 2019
ec98c18
chore(numericTextBox): changse for 2.0.0
marin-bratanov Sep 14, 2019
945a96f
chore(tabStrip): updates for 2.0.0
marin-bratanov Sep 14, 2019
5b4fb53
chore(textbox): updates for 2.0.0
marin-bratanov Sep 14, 2019
5fd7de0
chore(timePicker): updates for 2.0.0
marin-bratanov Sep 14, 2019
1be67df
chore(common): fix namespaces for 2.0.0
marin-bratanov Sep 14, 2019
a224c31
chore(treeview): updates for 2.0.0
marin-bratanov Sep 14, 2019
172f4d2
chore(window): first pass for updates for 2.0.0
marin-bratanov Sep 14, 2019
db12ec7
chore(common): update validation article for 2.0.0
marin-bratanov Sep 15, 2019
4e1b233
docs(common): common namespace in imports file
marin-bratanov Sep 15, 2019
68747a0
chore(window): updates for 2.0.0
marin-bratanov Sep 15, 2019
89653d9
docs(window): modal article
marin-bratanov Sep 15, 2019
837fe43
docs(common): update some KBs for 2.0.0
marin-bratanov Sep 15, 2019
fd8746e
docs(chart): responsive chart update
marin-bratanov Sep 16, 2019
a8aaa04
docs(numericTextBox): localization, separators, cultures
marin-bratanov Sep 16, 2019
b89a462
docs(grid): binding page index
marin-bratanov Sep 16, 2019
b35cc0d
docs(common): upgrade instructions, first pass
marin-bratanov Sep 16, 2019
9ce9786
docs(common): improvements on upgrade instructions
marin-bratanov Sep 16, 2019
c3b1e5a
chore(infrastructure): update gitignore
marin-bratanov Sep 16, 2019
66e60a6
docs(common): improve heading in upgrading troubleshooting
marin-bratanov Sep 16, 2019
efb6bdb
docs(common): add breaking changes info for 1.3.0
marin-bratanov Sep 16, 2019
a57cc21
docs(common): add breaking changes info for 1.3.0
marin-bratanov Sep 16, 2019
12d9d99
chore(common): unify page name for upgrade
marin-bratanov Sep 16, 2019
447e76a
chore(window): updates for 2.0.0
marin-bratanov Sep 16, 2019
69a3e5b
chore(calendar): update screenshots for 2.0.0
marin-bratanov Sep 16, 2019
82d90c8
chore(datePicker): update screenshot for 2.0.0
marin-bratanov Sep 16, 2019
2e3a2c3
chore(calendar): update screenshot for 2.0.0
marin-bratanov Sep 16, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@

.vs
.asset-cache/
.dockerignore
.DS_Store
.editorconfig
.jekyll-metadata
.ruby-version
.vs
/_assets/
/_build/
/_buildApi/
Expand Down
5 changes: 5 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ navigation:
"common-features":
title: "Common Features"
position: 15
"upgrade":
title: "Upgrade"
position: 17
"upgrade/breaking-changes":
title: "Breaking Changes"
"how-to":
title: "How To"
position: 20
Expand Down
20 changes: 9 additions & 11 deletions _contentTemplates/chart/link-to-basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,17 @@ This article assumes you are familiar with the [chart basics]({%slug components/
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`).

````CSHTML
@using Telerik.Blazor
@using Telerik.Blazor.Components.Chart
Colors per series item

<TelerikChart>
<TelerikChartSeriesItems>
<TelerikChartSeries Type="ChartSeriesType.Bar" Data="@theData" ColorField="@nameof(MyChartDataModel.Color)"
Field="@nameof(MyChartDataModel.ItemValue)" CategoryField="@nameof(MyChartDataModel.Category)">
</TelerikChartSeries>
</TelerikChartSeriesItems>
<ChartSeriesItems>
<ChartSeries Type="ChartSeriesType.Bar" Data="@theData" ColorField="@nameof(MyChartDataModel.Color)"
Field="@nameof(MyChartDataModel.ItemValue)" CategoryField="@nameof(MyChartDataModel.Category)" />
</ChartSeriesItems>

<TelerikChartTitle Text="Revenue per product"></TelerikChartTitle>
<ChartTitle Text="Revenue per product" />

<TelerikChartLegend Position="ChartLegendPosition.Right">
</TelerikChartLegend>
<ChartLegend Position="ChartLegendPosition.Right" />
</TelerikChart>

@code {
Expand All @@ -31,8 +28,9 @@ Bar and Column charts can take the color of the series item from the `ColorField
public double ItemValue { get; set; }
public string Color { get; set; }
}

public List<MyChartDataModel> theData = new List<MyChartDataModel>
{
{
new MyChartDataModel
{
Category = "Product 1",
Expand Down
4 changes: 4 additions & 0 deletions _contentTemplates/common/general-info.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#event-callback-can-be-async
>tip The event is an `EventCallback` and its type can be `void`, or it can also be asynchronous and return `async Task`.
#end

#ensure-nuget-packge-for-upgrade
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%}).
#end
4 changes: 0 additions & 4 deletions _contentTemplates/common/get-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,17 +91,13 @@ To get access to the UI for Blazor components, follow these steps:

**CSHTML**

@using Telerik.Blazor.Components.Button

<TelerikButton>Say Hello</TelerikButton>

1. Optionally, hook up a click handler that will show a message. The resulting view should look like this:

**CSHTML**

@page "/"

@using Telerik.Blazor.Components.Button

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

Expand Down
8 changes: 4 additions & 4 deletions _contentTemplates/treeview/basic-example.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#basic-example

````CSHTML
@using Telerik.Blazor.Components.TreeView
Sample treeview bound to self-referencing flat data. Also uses the built-in icons from the Telerik suite

<TelerikTreeView Data="@FlatData">
<TelerikTreeViewBindings>
<TelerikTreeViewBinding IdField="Id" ParentIdField="ParentIdValue" ExpandedField="Expanded" TextField="Text" HasChildrenField="HasChildren" IconField="Icon"></TelerikTreeViewBinding>
</TelerikTreeViewBindings>
<TreeViewBindings>
<TreeViewBinding IdField="Id" ParentIdField="ParentIdValue" ExpandedField="Expanded" TextField="Text" HasChildrenField="HasChildren" IconField="Icon" />
</TreeViewBindings>
</TelerikTreeView>

@code {
Expand Down
25 changes: 12 additions & 13 deletions common-features/font-icons.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ position: 1

# Built-in Icons

The UI for Blazor suite comes with a set of font icons that you can use in various places like in the Button component.
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.

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.

Expand All @@ -36,27 +36,26 @@ You can find the full list of available icons in the [Kendo UI Web Font Icons Li
>caption Render a standalone font icon through the TelerikIcon component

````CSHTML
@using Telerik.Blazor
@using Telerik.Blazor.Components

<TelerikIcon IconName="@IconName.Audio" /> @* will render the audio speaker icon *@
@using Telerik.Blazor.Components.Common.Icon

<TelerikIcon Class="oi oi-home" /> @* home icon from OpenIconic, assuming you have loaded the font on the page *@
<TelerikIcon Icon="@IconName.Audio" /> @* will render the audio note icon *@

<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 *@
<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 *@

<style>
.my-font-icon-class::before {
font: myFontIconFont; /* use actual font icon font */
content: "\e123"; /* use actual glyph position */
}
</style>
<TelerikIcon ImageUrl="https://demos.telerik.com/kendo-ui/content/shared/icons/sports/snowboarding.png" /> @* an image by URL, renders an actual <img /> tag *@
````

>caption The result from the snippet above

![](images/standalone-font-icons.png)

The priority order of the Icon properties, if more than one is defined, is

1. ImageUrl
2. Icon
3. IconClass
4. SpriteClass


## See Also

Expand Down
Binary file modified common-features/images/standalone-font-icons.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 2 additions & 8 deletions common-features/input-validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,7 @@ Simple textbox-like inputs do not have any special behavior. You need to bind th
>caption How to validate inputs

````CSHTML
@using Telerik.Blazor.Components.TextBox
@using Telerik.Blazor.Components.NumericTextBox
@using Telerik.Blazor.Components.DateInput
@using Telerik.Blazor.Components.DatePicker
@using Telerik.Blazor.Components.TimePicker
@using System.ComponentModel.DataAnnotations
@using System.ComponentModel.DataAnnotations // used for the model class attributes

<EditForm Model="@person" OnValidSubmit="@HandleValidSubmit">
<DataAnnotationsValidator />
Expand Down Expand Up @@ -125,8 +120,7 @@ The DropDownList always has an item selected - the first item from its data sour
>caption How to validate a dropdownlist

````CSHTML
@using Telerik.Blazor.Components.DropDownList
@using System.ComponentModel.DataAnnotations
@using System.ComponentModel.DataAnnotations // used for the model class attributes

<EditForm Model="@person" OnValidSubmit="@HandleValidSubmit">
<DataAnnotationsValidator />
Expand Down
14 changes: 5 additions & 9 deletions components/animationcontainer/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ To use the animation container, add the `TelerikAnimationContainer` tag.
>caption How to use the Animation Container

````CSHTML
@using Telerik.Blazor.Components.AnimationContainer
@using Telerik.Blazor.Components.Button
@using Telerik.Blazor
Click the button to toggle the visibility of the customized popup

<TelerikAnimationContainer @ref="myPopupRef" Top="300px" Width="100px" Height="100px" AnimationType="AnimationType.ZoomOut" Class="k-popup">
My content goes here. The "k-popup" class adds some background and borders which you can define through your own styles instead.
Expand All @@ -28,7 +26,7 @@ To use the animation container, add the `TelerikAnimationContainer` tag.
<TelerikButton OnClick="@ToggleContainer">Toggle Animation Container</TelerikButton>

@code {
Telerik.Blazor.Components.AnimationContainer.TelerikAnimationContainer myPopupRef;
Telerik.Blazor.Components.TelerikAnimationContainer myPopupRef;

public void ToggleContainer()
{
Expand All @@ -39,8 +37,8 @@ To use the animation container, add the `TelerikAnimationContainer` tag.

The animation container exposes the following properties and methods:

* `Show()`, `Hide()` and `Toggle()` - to control whether the container is shown.
* `Width` and `Height` - to control its size.
* `Show()`, `Hide()` and `Toggle()`; `ShowAsync()`, `HideAsync()` and `ToggleAsync()` - to control whether the container is shown.
* `Width` and `Height` - to control its [size]({%slug common-features/dimensions%}).
* `Top` and `Left` - to control its offset from its parent with special positioning (`relative`, `absolute`, `fixed`).
* `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:
* SlideUp,
Expand All @@ -61,9 +59,7 @@ The animation container exposes the following properties and methods:
>caption Explore the animation options

````CSHTML
@using Telerik.Blazor.Components.AnimationContainer
@using Telerik.Blazor.Components.Button
@using Telerik.Blazor
Choose a new animation from the dropdown and toggle the container

<TelerikAnimationContainer @ref="myPopup" Top="300px" Width="200px" Height="200px" AnimationType="@AnimType" Class="my-popup">
My content goes here.<br />
Expand Down
32 changes: 13 additions & 19 deletions components/button/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,23 @@ This article provides information about the Button component and its core featur

The Button component provides styling according to the [chosen theme]({%slug general-information/themes%}), click event and icons. You can also disable the button through a property.

In this article:

* [Basic Button](#basic-button)
* [Click Handler](#click-handler)
* [Styling](#styling)
* [Icons](#icons)
* [Disabled State](#disabled-state)
* [Button Type](#button-type)


## Basic Button

To add a Telerik Button to your Blazor app, use the `<TelerikButton>` tag:

>caption Basic Telerik Button tag

````CSHTML
@using Telerik.Blazor.Components.Button

<TelerikButton>Hello!</TelerikButton>
````

Expand All @@ -33,12 +41,12 @@ To add a Telerik Button to your Blazor app, use the `<TelerikButton>` tag:
>caption Component namespace and reference

````CSHTML
@using Telerik.Blazor.Components.Button
@using Telerik.Blazor.Components

<TelerikButton @ref="theButton">Hello!</TelerikButton>

@code{
Telerik.Blazor.Components.Button.TelerikButton theButton;
Telerik.Blazor.Components.TelerikButton theButton;
}
````

Expand All @@ -49,12 +57,10 @@ To attach a click handler, use the `OnClick` attribute and define the method in
>caption Click handler for a Telerik Button

````CSHTML
@using Telerik.Blazor.Components.Button
@someVariable

<TelerikButton OnClick="@myHandler">Click me!</TelerikButton>

@someVariable

@code {
MarkupString someVariable;

Expand All @@ -72,8 +78,6 @@ You can style the button through its `Class` attribute to define your own CSS ru
>caption Set CSS class to the button and change its appearance

````CSHTML
@using Telerik.Blazor.Components.Button

<TelerikButton Class="RedText">My text is red.</TelerikButton>

<style>
Expand All @@ -93,8 +97,6 @@ You can also make the button use a strong color to attact attention, called Prim
>caption Button with the Primary color scheme from the current theme

````CSHTML
@using Telerik.Blazor.Components.Button

<TelerikButton Primary="true">Primary</TelerikButton>
````

Expand All @@ -119,9 +121,6 @@ The following example shows how to use an image from a URL, a sprite image, and
>caption How to use icons in Telerik Button

````CSHTML
@using Telerik.Blazor.Components.Button
@using Telerik.Blazor

<TelerikButton SpriteClass="k-icon netherlandsFlag">Sprite</TelerikButton>
<TelerikButton Icon="@IconName.Filter">Font Icon</TelerikButton>
<TelerikButton ImageUrl="https://demos.telerik.com/kendo-ui/content/shared/icons/sports/snowboarding.png">Image URL</TelerikButton>
Expand All @@ -148,8 +147,6 @@ To disable a button, set its `Enabled` attribute to `false`.
>caption Disabled Telerik Button

````CSHTML
@using Telerik.Blazor.Components.Button

<TelerikButton Enabled="false">Disabled Button</TelerikButton>
````

Expand All @@ -168,9 +165,6 @@ You can control the `type` attribute through the `ButtonType` property of the co
* `Reset` - Renders a `type="reset"` attribute. Can reset the current form.

````CSHTML
@using Telerik.Blazor.Components.Button
@using Telerik.Blazor

<TelerikButton>Implicit SUBMIT</TelerikButton>
<TelerikButton ButtonType="@ButtonType.Submit">Explicit SUBMIT</TelerikButton>
<TelerikButton ButtonType="@ButtonType.Button">BUTTON</TelerikButton>
Expand Down
Binary file modified components/calendar/images/basic-calendar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified components/calendar/images/calendar-multiple-views.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified components/calendar/images/prev-next-navigation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 18 additions & 20 deletions components/calendar/navigation.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ You can control how far the user can go by setting the `Min` and `Max` propertie
>caption Previous and Next navigation is enabled by default. You can control the min and max range of dates the user can navigate through

````CSHTML
@using Telerik.Blazor.Components.Calendar
@using Telerik.Blazor

The user starts in April 2019 and can navigate between January 2019 and July 2019.
<br />

Expand Down Expand Up @@ -57,9 +54,6 @@ You can control how much detail the user can go into by setting the `BottomView`
>caption Control current view and how deep the user can go

````CSHTML
@using Telerik.Blazor.Components.Calendar
@using Telerik.Blazor

The user starts in the Decade view and can only go down to years.
<br />

Expand Down Expand Up @@ -88,28 +82,32 @@ The selected date is: @selectedDate

## Programmatic Navigation

You can make the Calendar component move to a certain date and view through its `Navigate` method from your own code. The method takes into account the min and max dates, and the allowed views. If the parameters passed to the method are not allowed by those constraints, navigation will not occur.
You can make the Calendar component move to a certain date and view through its `Date` and `View` parameters that support two-way binding. The constraints of the min/max and bottom view apply to programmatic navigation as well as to user navigation.

>caption Navigate the Calendar to a date and view programmatically

````CSHTML
@using Telerik.Blazor.Components.Calendar
@using Telerik.Blazor.Components.Button
Programmatic Calendar navigation<br />

<TelerikButton OnClick="@NavigateCalendarProgrammatically">Go to new date and view</TelerikButton>
<TelerikCalendar Date="@startDate" Max="@maxDate" Min="@minDate" View="@Telerik.Blazor.CalendarView.Decade" @ref="theCalendar"></TelerikCalendar>
<TelerikCalendar Date="@startDate"
Min="@min"
Max="@max"
View="@calendarView">
</TelerikCalendar>
<TelerikButton OnClick="@UpdateView">Update View</TelerikButton>

@code{
DateTime startDate = new DateTime(2345, 11, 22);
DateTime maxDate = new DateTime(2400, 11, 22);
DateTime minDate = new DateTime(1800, 11, 22);
@code {
CalendarView calendarView { get; set; } = CalendarView.Month;
DateTime startDate { get; set; } = new DateTime(2019, 5, 2);

Telerik.Blazor.Components.Calendar.TelerikCalendar theCalendar;
DateTime min = new DateTime(2015, 1, 1);
DateTime max = new DateTime(2025, 12, 31);

void NavigateCalendarProgrammatically()
{
theCalendar.Navigate(DateTime.Now, Telerik.Blazor.CalendarView.Month);
}
protected void UpdateView()
{
calendarView = CalendarView.Year;
startDate = new DateTime(2018, 5, 2);
}
}
````

Expand Down
Loading