New to Telerik UI for ASP.NET Core? Download free 30-day trial
ASP.NET Core Grid Custom Command
- EXAMPLE
- VIEW SOURCE
-
Change Theme
defaultDefault Theme
- Main
- Main Dark
- Nordic
- Ocean Blue
- Ocean Blue A11Y
- Purple
- Turquoise
Bootstrap Theme- Main
- Bootstrap 3
- Bootstrap 3 Dark
- Main Dark
- Nordic
- Turquoise
- Turquoise Dark
- Urban
- Vintage
Material Theme- Main
- Arctic
- Lime Dark
- Main Dark
- Nova
Classic Theme- Main
- Green
- Green Dark
- Lavender
- Lavender Dark
- Main Dark
- Metro
- Metro Dark
- Moonlight
- Opal
- Opal Dark
- Silver
- Silver Dark
- Uniform
Fluent Theme- Main
Also available for:
CLIENT-SIDE API HTML HELPER APIDescription
The Telerik UI for ASP.NET Core Data Grid provides configuration options for including a custom command column. As a result, the component will render a button in its column cells that will trigger the command.
Through the column definition of he Data Grid, you can specify the text for that button and wire its click
event to a JavaScript function—columns.Command(command => command.Custom("ViewDetails").Click("showDetails"));
. The generated button will be decorated with a class which follows the k-grid-[CommandName]
convention and the click
handler will receive the corresponding Grid as an argument.
This demo shows how to implement a custom command column in the Data Grid and use a Kendo UI for jQuery Window component to display details about the selected Grid row.
For more information, refer to the official Telerik UI for ASP.NET Core Data Grid product documentation on implementing custom command columns.