Solution: You can display the other Syncfusion Essential JavaScript controls using template property of Grid columns. The following code example shows how to render Syncfusion Essential JavaScript ejRating control as one of the Grid column and set the value based on the column “EmployeeID”. We have used JSRender conditional tag “if” to set value for Rating control based on condition. 1. Render the Grid control. JS
JS
MVC
ASP.NET
2. You can render the ejRating control in Grid column using the templateRefresh event. If ej controls are rendered in templateRefresh event then it will re-render automatically, when any grid action is performed. JS
Note: Similarly, we can bind all other Syncfusion JavaScript controls such as ejDatePicker, ejTimePicker, ejCheckBox etc as one of the column in grid.
The following output is displayed as a result of the above code example.
Figure: Grid with template column
|
This page will automatically be redirected to the sign-in page in 10 seconds.
Hi, is there a way to do this with the split button but with the target being part of the template? When we try the following, the target element is not available when the split button is created, so no options are available.