@@ -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- < ; TelerikForm> ;
117- < ; FormItems> ;
118- <strong >< ; div> ;
119- content around form items</strong >
120- < ; FormItem Field="FieldName1" /> ;
121- <strong >< ; /div> ; </strong >
122- <strong >< ; div> ; content between items< ; div> ; </strong >
123- < ; FormItem Field="FieldName2"> ;
124- < ; Template> ;
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- < ; /TelerikForm> ;
160- </code ></pre ></td ><td style =" vertical-align :top " ><p ><strong >Index.razor</strong ></p ><pre ><code >
161- < ; TelerikForm> ;
162- < ; FormItems> ;
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- < FormItem Field="FieldName1" />
177+ < FormItem Field="FieldName1" />
166178
167179
168- < FormItem Field="FieldName2">
169- < Template>
180+ < FormItem Field="FieldName2">
181+ < Template>
170182 ...
171- < /Template>
172- < /FormItem>
183+ < /Template>
184+ < /FormItem>
173185
174186
175- < FormItem Field="FieldName3" />
187+ < FormItem Field="FieldName3" />
176188
177- <strong>< FormItem Field="FieldName4" /></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 >< ; ChildComponent NestedFormItem="@formItem4 " /> ; </strong >
203- < ; /FormItemsTemplate> ;
204- < ; /TelerikForm> ;
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- < ; FormItem Field="FieldName4" /> ;
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- < ; TelerikFormItemRenderer Item="@NestedFormItem " /> ;
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
0 commit comments