Skip to content

Commit 5857e16

Browse files
kb(Grid): address comments
1 parent 4f7109c commit 5857e16

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

knowledge-base/grid-kb-create-reusable-columns.md renamed to knowledge-base/grid-create-reusable-columns.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ To create a reusable `GridColumn` component with templates, follow these steps:
3131

3232
2. Within the custom component, conditionally render a `GridColumn` with or without templates based on the provided parameters.
3333

34-
````RAZOR Index.razor
34+
<div class="skip-repl"></div>
35+
````Index.razor
3536
<TelerikGrid Data="@MyData" EditMode="@GridEditMode.Incell" Pageable="true" OnUpdate="@UpdateHandler">
3637
<GridColumns>
3738
<CustomColumn TItem="@Employee" Field="@(nameof(Employee.ID))"></CustomColumn>
@@ -96,8 +97,7 @@ To create a reusable `GridColumn` component with templates, follow these steps:
9697
}
9798
}
9899
````
99-
100-
````RAZOR CustomColumn.razor
100+
````CustomColumn.razor
101101
@typeparam TItem
102102
103103
@if (IsTemplate)
@@ -153,21 +153,20 @@ else
153153
};
154154
}
155155
````
156-
157-
````C# Employee.cs
156+
````Employee.cs
158157
public class Employee
159158
{
160159
public int ID { get; set; }
161160
public string Name { get; set; }
162161
public int RoleId { get; set; }
163162
}
164163
````
165-
````C# Role.cs
164+
````Role.cs
166165
public class Role
167-
{
168-
public int RoleId { get; set; }
169-
public string RoleName { get; set; }
170-
}
166+
{
167+
public int RoleId { get; set; }
168+
public string RoleName { get; set; }
169+
}
171170
````
172171

173172
## See Also

0 commit comments

Comments
 (0)