New to Telerik UI for ASP.NET MVC? Download free 30-day trial
ASP.NET MVC Grid Custom Command
- EXAMPLE
- VIEW SOURCE
-
Change Theme
defaultSASSLESSDefault Theme
- Main
- Main Dark
- Nordic
- Ocean Blue
- Purple
- Turquoise
Bootstrap Theme- Main
- Main Dark
- Nordic
- Urban
- Vintage
Material Theme- Main
- Arctic
- Lime Dark
- Main Dark
- Nova
Classic Theme- Main
- Main Dark
- Opal
- Silver
Fluent Theme- Main
Also available for:
CLIENT-SIDE API SERVER-SIDE APIDescription
The Telerik UI for ASP.NET MVC 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 MVC Data Grid product documentation on implementing custom command columns.