Skip to content

Commit 41d78d3

Browse files
committed
chore(common): fix no language errors
1 parent 477be45 commit 41d78d3

File tree

5 files changed

+22
-91
lines changed

5 files changed

+22
-91
lines changed

common-features/loading-sign.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Thus, to show a loading indicator during the initial data load, you can do eithe
7878
>caption Loading Sign for the initial data load - a few examples
7979
8080
<div class="skip-repl"></div>
81-
````Grid
81+
````RAZOR Grid
8282
This sample shows only an indicator for the initial data load, only the DELETE operation is slowed down so you can see a loading sign.
8383
8484
<div style="position: relative; width:100%; min-height: 400px;">
@@ -145,7 +145,7 @@ This sample shows only an indicator for the initial data load, only the DELETE o
145145
}
146146
}
147147
````
148-
````Scheduler
148+
````RAZOR Scheduler
149149
This sample shows only an indicator for the initial data load, only the DELETE operation is slowed down so you can see a loading sign.
150150
151151
<div style="position: relative; width:100%; min-height: 600px;">
@@ -252,7 +252,7 @@ This sample shows only an indicator for the initial data load, only the DELETE o
252252
}
253253
}
254254
````
255-
````TreeView
255+
````RAZOR TreeView
256256
This sample shows a loading panel over the treeview container (tweak as required by your layout and design) in addition to the loading indicators the treeview provides while loading data on demand.
257257
258258
<div style="position: relative; width:100%; min-height: 400px;">

components/filter/integration.md

Lines changed: 5 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,12 @@ This article contains the following sections:
2525

2626
**To integrate the Filter with the Telerik Grid, you need to:**
2727

28-
1. Set the Value parameter of the Filter via [one-way]({%slug filter-events%}#valuechanged) or two-way binding.
28+
1. Set the Value parameter of the Filter via [one-way]({%slug filter-events%}#valuechanged) or two-way binding. If you want to filter at the moment of change, use Filter with a one-way bound value.
2929
2. Update the Grid data based on the Filter value.
3030

31-
>caption Filter with two-way bound value in Grid. If you want to filter at the moment of change, use Filter with a one-way bound value.
31+
>caption Filter with two-way bound value in Grid
3232
33-
<div class="skip-repl"></div>
34-
35-
````Two-way
33+
````RAZOR
3634
@using Telerik.DataSource;
3735
@using Telerik.DataSource.Extensions;
3836
@@ -108,76 +106,7 @@ This article contains the following sections:
108106
}
109107
}
110108
````
111-
````One-way
112-
@using Telerik.DataSource;
113-
@using Telerik.DataSource.Extensions;
114-
115-
<TelerikFilter ValueChanged="@OnValueChanged">
116-
<FilterFields>
117-
<FilterField Name="@(nameof(Person.EmployeeId))" Type="@(typeof(int))" Label="Id"></FilterField>
118-
<FilterField Name="@(nameof(Person.Name))" Type="@(typeof(string))" Label="First Name"></FilterField>
119-
<FilterField Name="@(nameof(Person.AgeInYears))" Type="@(typeof(int))" Label="Age"></FilterField>
120-
<FilterField Name="@(nameof(Person.IsOutOfOffice))" Type="@(typeof(bool))" Label="Out Of Office"></FilterField>
121-
</FilterFields>
122-
</TelerikFilter>
123-
124-
<TelerikGrid Data="@GridData"
125-
Height="400px"
126-
Pageable="true"
127-
Sortable="true"
128-
Groupable="true">
129-
<GridColumns>
130-
<GridColumn Field="@(nameof(Person.EmployeeId))" />
131-
<GridColumn Field="@(nameof(Person.Name))" Title="Name" />
132-
<GridColumn Field="@(nameof(Person.AgeInYears))" Title="Age" />
133-
<GridColumn Field="@(nameof(Person.IsOutOfOffice))" Title="Out Of Office" />
134-
</GridColumns>
135-
</TelerikGrid>
136-
137-
@code {
138-
public IEnumerable<Person> InitialData { get; set; }
139-
public IEnumerable<Person> GridData { get; set; }
140-
141-
private void OnValueChanged(CompositeFilterDescriptor filter)
142-
{
143-
var dataSourceRequest = new DataSourceRequest { Filters = new List<IFilterDescriptor>{ filter } };
144-
145-
var datasourceResult = InitialData.ToDataSourceResult(dataSourceRequest);
146109

147-
GridData = datasourceResult.Data.Cast<Person>().ToList();
148-
}
149-
150-
protected override void OnInitialized()
151-
{
152-
LoadData();
153-
base.OnInitialized();
154-
}
155-
156-
void LoadData()
157-
{
158-
InitialData = Enumerable.Range(1, 100).Select(x => new Person
159-
{
160-
EmployeeId = x,
161-
Name = "name " + x,
162-
AgeInYears = x * 2,
163-
IsOutOfOffice = x % 2 == 0
164-
});
165-
166-
GridData = new List<Person>(InitialData);
167-
}
168-
169-
public class Person
170-
{
171-
public int EmployeeId { get; set; }
172-
173-
public string Name { get; set; }
174-
175-
public int AgeInYears { get; set; }
176-
177-
public bool IsOutOfOffice { get; set; }
178-
}
179-
}
180-
````
181110
>caption The result from the above code snippet.
182111
183112
![Blazor Filter Grid Integration](images/filter-grid-integration.gif)
@@ -189,7 +118,7 @@ This article contains the following sections:
189118
1. Set the Value parameter of the Filter via one-way or two-way binding.
190119
2. Update the TreeView data based on the Filter value.
191120

192-
>caption Use Filter in TreeView.
121+
>caption Use Filter in TreeView
193122
194123
````CSHTML
195124
@using Telerik.DataSource
@@ -337,7 +266,7 @@ This article contains the following sections:
337266
1. Set the Value parameter of the Filter via one-way or two-way binding.
338267
2. Update the TreeList data based on the Filter value.
339268

340-
>caption Use Filter in TreeList.
269+
>caption Use Filter in TreeList
341270
342271
````CSHTML
343272
@using Telerik.DataSource

components/tabstrip/scrollable-tabs.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,9 @@ If the TabStrip dimensions exceed the width or height of the page, a browser-lev
1414

1515
To scroll the tabs only, set the `Scrollable` bool parameter of the TabStrip to `true` (defaults to `false`). You should also set the `Width` (for tabs with [Position]({%slug tabstrip-tabs-position%}) set to top and bottom) and `Height` (for tabs with [Position]({%slug tabstrip-tabs-position%}) set to left and right) to achieve the desired behavior.
1616

17-
>caption Scroll the tabs only
17+
>caption Horizontal Scrolling
1818
19-
<div class="skip-repl"></div>
20-
````HorizontalScrolling
19+
````RAZOR
2120
<TelerikTabStrip Scrollable="true"
2221
Width="300px"
2322
TabPosition="Telerik.Blazor.TabPosition.Top">
@@ -31,10 +30,13 @@ To scroll the tabs only, set the `Scrollable` bool parameter of the TabStrip to
3130
}
3231
</TelerikTabStrip>
3332
````
34-
````VerticalScrolling
33+
34+
>caption Vertical Scrolling
35+
36+
````RAZOR
3537
<TelerikTabStrip Scrollable="true"
36-
Width="300px"
37-
TabPosition="Telerik.Blazor.TabPosition.Top">
38+
Height="200px"
39+
TabPosition="Telerik.Blazor.TabPosition.Left">
3840
@{
3941
for (int i = 0; i < 10; i++)
4042
{

components/tooltip/template.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ This example shows how you can use a standalone component to generate the toolti
102102
>caption Generate tooltip content through a separate component
103103
104104
<div class="skip-repl"></div>
105-
````MainComponent
105+
````RAZOR MainComponent
106106
@* Tip: set dimensions that will accommodate the data/content you fetch/generate
107107
to avoid sizing and/or positioning issues when the new content is rendered *@
108108
@@ -120,7 +120,7 @@ This example shows how you can use a standalone component to generate the toolti
120120
and even a <strong class="target">third target</strong>.
121121
</p>
122122
````
123-
````TooltipContentComponent
123+
````RAZOR TooltipContentComponent
124124
@* You can apply more styling, add different content or more components
125125
This example showcases the concept, you can modify it to match you needs.
126126
Using the OnParametersSet event and loading data on demand is not required *@

knowledge-base/common-stack-grid-layout.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ To do a grid layout, the easiest approach is to use a CSS Grid. For example:
5050
![Basic Grid Layout](images/grid-layout-basics.png)
5151

5252
<div class="skip-repl"></div>
53-
````Blazor
53+
````RAZOR Blazor
5454
<style>
5555
.main-layout {
5656
/*display arrangement*/
@@ -75,7 +75,7 @@ To do a grid layout, the easiest approach is to use a CSS Grid. For example:
7575
<div>Column 2, row 2:<br /> 5 fractions wide, 1 tall</div>
7676
</div>
7777
````
78-
````XAML
78+
````XML XAML
7979
<Grid>
8080
<Grid.ColumnDefinitions>
8181
<ColumnDefinition Width="3*"/>
@@ -95,7 +95,7 @@ To create a stack layout, you can use CSS Flexbox. For example:
9595
![Basic Stack Layout](images/stack-layout-basics.png)
9696

9797
<div class="skip-repl"></div>
98-
````Blazor
98+
````RAZOR Blazor
9999
<style>
100100
/*vertial - first example*/
101101
.stack-vertical {
@@ -135,7 +135,7 @@ To create a stack layout, you can use CSS Flexbox. For example:
135135
<p>Feels like: 63&deg;</p>
136136
</div>
137137
````
138-
````XAML
138+
````XML XAML
139139
<StackPanel Grid.Column="1" Margin="40,0,0,0" VerticalAlignment="Center">
140140
<TextBlock Foreground="White" FontSize="25" Text="Today - 64° F"/>
141141
<TextBlock Foreground="White" FontSize="25" Text="Partially Cloudy"/>

0 commit comments

Comments
 (0)