Rendering Icons for Boolean Columns in the Grid
Environment
Product | Telerik UI for ASP.NET MVC Grid |
Progress Telerik UI for ASP.NET MVC version | Created with the 2023.1.117 version |
Description
How can I render icons for a Boolean column in the Telerik UI for ASP.NET MVC Grid?
Solution
To achieve the desired scenario:
- Specify a column template for the Boolean column by using the
ClientTemplate()
configuration method and provide a function handler. - Within the handler, replace the default
true
andfalse
values by using the conventional Kendo UI Web Font Icons.
For the complete implementation of the suggested approach, refer to the Telerik REPL example on rendering icons for a Boolean column in the Grid.