Skip to content

Commit f3ffe32

Browse files
ntachevanikolay-nenkov
authored andcommitted
chore(Grid,Gauge): fix snippets and skip repl
1 parent e17551d commit f3ffe32

File tree

6 files changed

+11
-9
lines changed

6 files changed

+11
-9
lines changed

_contentTemplates/grid/common-link.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ A multi-header column does not show up in the list of columns in the column choo
171171

172172
The state of a multi-header column is handled in the same way as a standard column. The columns in the state are listed in a flat list in the order of definition. For example, for the following setup:
173173

174+
<div class="skip-repl"></div>
174175
````CSHTML
175176
<TelerikGrid>
176177
<GridColumns>

components/gauges/circular/pointers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ The `Size` (`double`) parameter controls the size of the pointer.
118118
![larger pointer size](images/pointer-size-circular.png)
119119

120120
````CSHTML
121-
* Change the size of the pointer *@
121+
@* Change the size of the pointer *@
122122
123123
<TelerikCircularGauge>
124124
<CircularGaugePointers>

components/gauges/radial/labels.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ The `Visible` (`bool`) parameter controls whether the labels will be rendered.
122122
123123
<RadialGaugeScale>
124124
<RadialGaugeScaleLabels Background="yellow">
125-
<RadialGaugeScaleLabels Margin Top="10" Bottom="10" Left="10" Right="10"></RadialGaugeScaleLabelsMargin>
125+
<RadialGaugeScaleLabelsMargin Top="10" Bottom="10" Left="10" Right="10"></RadialGaugeScaleLabelsMargin>
126126
</RadialGaugeScaleLabels>
127127
</RadialGaugeScale>
128128
</RadialGaugeScales>

components/grid/editing/overview.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,7 @@ There are a few considerations to keep in mind with the CUD operations of the gr
435435

436436
* When an input receives an `EditContext` (usually comes down as a cascading parameter), the framework also requires a `ValueExpression`. If you use two-way binding (the `@bind-Value` syntax), the `ValueExpression` is deducted from there. However, if you use only the `Value` property, you have to pass the `ValueExpression` yourself. This is a lambda expression that tells the framework what field in the model to update. The following sample demonstrates how to achieve that. You can also check the [Requires a value for ValueExpression]({%slug common-kb-requires-valueexpression%}) knowledge base article for more details.
437437

438+
<div class="skip-repl"></div>
438439
````CSHTML
439440
<EditorTemplate>
440441
<TelerikTextBox Value="@myModel.MyField"

components/grid/editing/validation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ You can validate the Grid with any validator that uses the `EditContext`. To cha
182182

183183
>note Such third party tools are not included in the Telerik UI for Blazor package. Your project must reference their NuGet packages explicitly. The code snippet below will not run unless you install an appropriate package first. You can find such in the <a href="https://docs.fluentvalidation.net/en/latest/blazor.html" target="_blank">official FluentValidation documentation</a>.
184184
185-
185+
<div class="skip-repl"></div>
186186
````CSHTML
187187
@using Blazored.FluentValidation
188188
@using FluentValidation

components/grid/overview.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -196,17 +196,17 @@ To execute these methods, obtain reference to the Grid instance via `@ref`.
196196
@code {
197197
private TelerikGrid<GridModel> TheGrid { get; set; }
198198
199-
private void AutoFit()
199+
private async Task AutoFit()
200200
{
201-
TheGrid.AutoFitAllColumns();
201+
await TheGrid.AutoFitAllColumnsAsync();
202202
}
203203
204204
private IEnumerable<GridModel> GridData = Enumerable.Range(1, 5)
205205
.Select(x => new GridModel
206-
{
207-
Id = x,
208-
Text = "some longer text here that will not fit on a single line and we would like to expand it " + x
209-
});
206+
{
207+
Id = x,
208+
Text = "some longer text here that will not fit on a single line and we would like to expand it " + x
209+
});
210210
211211
public class GridModel
212212
{

0 commit comments

Comments
 (0)