This is a migrated thread and some comments may be shown as answers.

Display Boolean Field As Checkbox - PHP Wrappers

1 Answer 84 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Paolo
Top achievements
Rank 1
Paolo asked on 26 May 2016, 06:12 PM

Hi,

i see there is helpful insight as to how to create boolean checkbox fields using javascript code http://docs.telerik.com/kendo-ui/controls/data-management/grid/how-to/Templates/grid-with-checkbox-column . But I am often unsure how to translate this code to make it work for a grid that uses PHP Wrapper code.

 

Any insights as to how to adapt the checkbox field code to work for UI Grid PHP Wrapping would be greatly appreciated. Thank you!

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 31 May 2016, 07:26 AM
Hello Paolo,

You can define the column template using the column.template option: It accepts either string template or a function that returns a string template. With that in mind, you can use the same column template shown in the how-to demo with the PHP wrapper. You just need to use the proper property. For more details how to define templates in UI for PHP, check grid demos:
Regards,
Georgi Krustev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Paolo
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or