Skip to content

Replies

0
Vincent LEBRANCHU
Vincent LEBRANCHU answered on Dec 22, 2022 4:31 PM

Hello Georgio,

Thank you for your answer I'll have a look tomorrow at your sample, but I do not agree with you: 

"Checkboxes are not rendered for boolean values in columns with a column template"

This doesn't mean that templating on a boolean column (using its value in the template) will not work if renderCheckboxes is enable. In fact, it clearly suggests that the checkboxes won't be created (I agree) but that the template will be applied, and it works if that column is not used by the template (which is in my opinion useless). In fact that sentence indicates more that if renderCheckboxes is true and a template is on a column then that column will use the template (weither the template contains that column name or not) and not the checkboxes aspect. 

Best regards.

0
Vincent LEBRANCHU
Vincent LEBRANCHU answered on Dec 22, 2022 1:12 PM

Hello Georgi,

I agree with you that this should work but this means parsing again all rows which could implies performance issues. My question is the following why is it not working with templates based on a boolean column when renderCheckboxes is set to true? 

I did some debugging and it seems when the renderContent of jsrenderer is called It gets the checkBox html string instead of the value while the iggrid API says that it shouldn't (cf. renderCheckboxes api documentation). Can you confirm that I should open a ticket and that is it fixable? Because that could fix my problem.

Best Regards.