Making Check box invisible in certain rows of a datatable

Hi,

I have table table with two columns. One column is a checkbox and the other one contains data for user selection using the checkbox. I need to make the checkbox invisible for certain rows meeting the criteria of the next data column.
For example (in pseudo code): if (column2 value > 100) then checkbox != visible else checkbox = visible;
Thanks

Ashok

You can use template with logic inside
http://webix.com/snippet/f405908b

Thank you.

With Regards
Ashok

Hi
The code works. I have tried the snippet in the project and the check boxes are not visible when the condition is met. However, all the check boxes are unchecked when loaded even though value of 1 has been set. The same happens even if the table is scrolled after the user has checked some rows.

Ashok

Sorry for inconvenience, check the update snippet
http://webix.com/snippet/9f7a23c6

You need to pass all parameters of template to common.checkbox, it will fix the problem with checkbox unchecking.

Thank you. Perfect. Wonder why we need to pass the dummy parameter b.!!

All templates in webix components have 2 parameters - object and helpers.
Unfortunately in case of datatable, this is not enough - template function has 5 parameters ( object, helper, value, column configuration, row index )

I think we will improve this case in next builds. Will change default helpers, so they will be able to work with only two parameters, as other templates, and will update the related documentation as well.