Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions components/treelist/columns/command.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ There are four built-in commands:
The command column provides access to the data item via `context`. This may be useful for conditional statements or passing parameters to custom business logic.

<div class="skip-repl"></div>
```razor
````RAZOR
<TreeListCommandColumn>
@{
var product = context as ProductModel;
Expand All @@ -71,7 +71,7 @@ The command column provides access to the data item via `context`. This may be u
}
}
</TreeListCommandColumn>
```
````

### OnClick Handler

Expand All @@ -88,7 +88,7 @@ The `OnClick` handler of the commands receives an argument of type `TreeListComm

## Example

>caption Example of handling custom commands in a treelist
>caption Example of handling custom commands in a TreeList

````RAZOR
@* This sample showcases custom command handling for:
Expand Down
8 changes: 4 additions & 4 deletions knowledge-base/grid-create-reusable-columns.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ To create a reusable `GridColumn` component with templates, follow these steps:
2. Within the custom component, conditionally render a `GridColumn` with or without templates based on the provided parameters.

<div class="skip-repl"></div>
````Index.razor
````RAZOR Index.razor
<TelerikGrid Data="@MyData" EditMode="@GridEditMode.Incell" Pageable="true" OnUpdate="@UpdateHandler">
<GridColumns>
<CustomColumn TItem="@Employee" Field="@(nameof(Employee.ID))"></CustomColumn>
Expand Down Expand Up @@ -97,7 +97,7 @@ To create a reusable `GridColumn` component with templates, follow these steps:
}
}
````
````CustomColumn.razor
````RAZOR CustomColumn.razor
@typeparam TItem

@if (IsTemplate)
Expand Down Expand Up @@ -153,15 +153,15 @@ else
};
}
````
````Employee.cs
````CS Employee.cs
public class Employee
{
public int ID { get; set; }
public string Name { get; set; }
public int RoleId { get; set; }
}
````
````Role.cs
````CS Role.cs
public class Role
{
public int RoleId { get; set; }
Expand Down
Loading