Skip to content

Commit d433dde

Browse files
ntachevaVelinovAngel
authored andcommitted
chore(common): fix tables in breaking changes articles and remaining warnings
1 parent 7e1ff5e commit d433dde

File tree

6 files changed

+780
-620
lines changed

6 files changed

+780
-620
lines changed

components/form/formitems/formitemstemplate.md

Lines changed: 82 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -110,27 +110,32 @@ Here are the steps to migrate custom content inside the Form from version 4.0.1-
110110

111111
>caption Comparison between versions up to 4.0.1 and after 4.2.0.
112112
113+
<div class="skip-repl"></div>
113114
<table>
114115
<thead><tr><th>Up to 4.0.1</th><th>From 4.2.0</th></tr></thead>
115-
<tbody><tr><td style="vertical-align:top"><p><strong>Index.razor</strong></p><pre><code>
116-
&lt;TelerikForm&gt;
117-
&lt;FormItems&gt;
118-
<strong>&lt;div&gt;
119-
content around form items</strong>
120-
&lt;FormItem Field="FieldName1" /&gt;
121-
<strong>&lt;/div&gt;</strong>
122-
<strong>&lt;div&gt;content between items&lt;div&gt;</strong>
123-
&lt;FormItem Field="FieldName2"&gt;
124-
&lt;Template&gt;
116+
<tbody><tr>
117+
<td>
118+
<p><strong>Index.razor</strong></p>
119+
120+
````RAZOR
121+
<TelerikForm>
122+
<FormItems>
123+
<div>
124+
content around form items
125+
<FormItem Field="FieldName1" />
126+
</div>
127+
<div>content between items<div>
128+
<FormItem Field="FieldName2">
129+
<Template>
125130
...
126-
&lt;/Template&gt;
127-
&lt;/FormItem&gt;
128-
<strong>@if (someCondition)</strong>
131+
</Template>
132+
</FormItem>
133+
@if (someCondition)
129134
{
130-
&lt;FormItem Field="FieldName3" /&gt;
135+
<FormItem Field="FieldName3" />
131136
}
132-
<strong>&lt;ChildComponent /&gt;</strong>
133-
&lt;/FormItems&gt;
137+
<ChildComponent />
138+
</FormItems>
134139
135140
136141
@@ -156,71 +161,95 @@ Here are the steps to migrate custom content inside the Form from version 4.0.1-
156161
157162
158163
159-
&lt;/TelerikForm&gt;
160-
</code></pre></td><td style="vertical-align:top"><p><strong>Index.razor</strong></p><pre><code>
161-
&lt;TelerikForm&gt;
162-
&lt;FormItems&gt;
164+
165+
</TelerikForm>
166+
````
167+
168+
</td>
169+
<td>
170+
<p><strong>Index.razor</strong></p>
171+
172+
````RAZOR
173+
<TelerikForm>
174+
<FormItems>
163175
164176
165-
&lt;FormItem Field="FieldName1" /&gt;
177+
<FormItem Field="FieldName1" />
166178
167179
168-
&lt;FormItem Field="FieldName2"&gt;
169-
&lt;Template&gt;
180+
<FormItem Field="FieldName2">
181+
<Template>
170182
...
171-
&lt;/Template&gt;
172-
&lt;/FormItem&gt;
183+
</Template>
184+
</FormItem>
173185
174186
175-
&lt;FormItem Field="FieldName3" /&gt;
187+
<FormItem Field="FieldName3" />
176188
177-
<strong>&lt;FormItem Field="FieldName4" /&gt;</strong>
178-
&lt;/FormItems&gt;
179-
&lt;FormItemsTemplate Context="formContext"&gt;
189+
<FormItem Field="FieldName4" />
190+
</FormItems>
191+
<FormItemsTemplate Context="formContext">
180192
@{
181193
var formItems = formContext.Items
182-
.Cast&lt;IFormItem&gt;().ToList();
194+
.Cast<IFormItem>().ToList();
183195
}
184-
<strong>&lt;div&gt;
185-
content around form items</strong>
186-
&lt;TelerikFormItemRenderer
187-
Item="@( formItems.First(x =&gt;
188-
x.Field == "FieldName1") )" /&gt;
189-
<strong>&lt;/div&gt;</strong>
190-
<strong>&lt;div&gt;content between items&lt;div&gt;</strong>
191-
&lt;TelerikFormItemRenderer
192-
Item="@( formItems.First(x =&gt;
193-
x.Field == "FieldName2") )" /&gt;
194-
<strong>@if (someCondition)</strong>
196+
<div>
197+
content around form items
198+
<TelerikFormItemRenderer
199+
Item="@( formItems.First(x =>
200+
x.Field == "FieldName1") )" />
201+
</div>
202+
<div>content between items<div>
203+
<TelerikFormItemRenderer
204+
Item="@( formItems.First(x =>
205+
x.Field == "FieldName2") )" />
206+
@if (someCondition)
195207
{
196-
&lt;TelerikFormItemRenderer
197-
Item="@( formItems.First(x =&gt;
198-
x.Field == "FieldName3") )" /&gt;
208+
<TelerikFormItemRenderer
209+
Item="@( formItems.First(x =>
210+
x.Field == "FieldName3") )" />
199211
}
200-
@{ var formItem4 = formItems.First(x =&gt;
212+
@{ var formItem4 = formItems.First(x =>
201213
x.Field == "FieldName4"); }
202-
<strong>&lt;ChildComponent NestedFormItem="@formItem4" /&gt;</strong>
203-
&lt;/FormItemsTemplate&gt;
204-
&lt;/TelerikForm&gt;
205-
</code></pre></td></tr><tr><td style="vertical-align:top"><p><strong>ChildComponent.razor</strong></p><pre><code>
214+
<ChildComponent NestedFormItem="@formItem4" />
215+
</FormItemsTemplate>
216+
</TelerikForm>
217+
````
218+
219+
</td>
220+
</tr>
221+
<tr>
222+
<td>
223+
<p><strong>ChildComponent.razor</strong></p>
224+
225+
````RAZOR
226+
<FormItem Field="FieldName4" />
206227
207-
&lt;FormItem Field="FieldName4" /&gt;
208228
209229
210230
211231
212232
213233
214-
</code></pre></td><td style="vertical-align:top"><p><strong>ChildComponent.razor</strong></p><pre><code>
215234
216-
&lt;TelerikFormItemRenderer Item="@NestedFormItem" /&gt;
235+
````
236+
237+
</td>
238+
<td>
239+
<p><strong>ChildComponent.razor</strong></p>
240+
241+
````RAZOR
242+
<TelerikFormItemRenderer Item="@NestedFormItem" />
217243
218244
@code {
219245
[Parameter]
220246
public IFormItem NestedFormItem { get; set; }
221247
}
248+
````
222249

223-
</code></pre></td></tr></tbody>
250+
</td>
251+
</tr>
252+
</tbody>
224253
</table>
225254

226255

components/window/position.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The `Centered` parameter determines if the Window displays centered in the viewp
2525

2626
A centered Window applies the following CSS styles, which maintain the centered position even if the viewport size changes:
2727

28-
```
28+
```CSS
2929
.k-centered {
3030
top: 50%;
3131
left: 50%;

knowledge-base/common-struct-error.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,11 @@ res_type: kb
2323
## Description
2424

2525
When using a data-bound component, the application gets a null exception, and the component does not work. When running the Telerik Blazor application the application gets an error similar to the following:
26-
```
26+
27+
````C#
2728
ArgumentNullException: Value cannot be null. (Parameter 'source')
2829
System.Linq.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
29-
```
30+
````
3031

3132
To reproduce the problem, you can use the following code sample:
3233
````CSHTML

0 commit comments

Comments
 (0)