Display Boolean Field As Checkbox - PHP Wrappers

2 posts, 0 answers
  1. Paolo
    Paolo avatar
    3 posts
    Member since:
    Apr 2016

    Posted 26 May 2016 Link to this post

    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!

  2. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3747 posts

    Posted 30 May 2016 Link to this post

    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!
     
Back to Top