New to Telerik UI for ASP.NET Core? Download free 30-day trial
ASP.NET Core Grid Custom Command
-
EXAMPLEVIEW SOURCE
- EDIT IN
Also available for:
CLIENT-SIDE API HTML HELPER APIDescription
The ASP.NET Core DataGrid 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.