Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
4040
Conditionnal column template
posted

Hello,

I would like to apply a template on a column of an editable hierarchical grid.

To do this I use the template property of the column and write a conditionnal template.

My template depends on other colonne so I tested it ad describe in your template engine documentation.

My problem appears when I want to test a boolean column that have the template property set. The get value in the template is not the boolean but a string containing the default checkbox template.

Is there a way to get the value instead of this string ?

I hosted a sample to show you how I did it : http://sdrv.ms/1b0JtSO.

Regards.

Parents
  • 49378
    posted

    Hello Cosoluce_Stones,

    In this scenario, in order to ensure that the value of the cell is returned rather than the rendered html (when self invoking), therenderCheckboxesoption of the child layout should be disabled. As templating is used in this scenario, rendering the checkboxes in the bool columns is not necessary beforehand. Attached is you modified sample illustrating this.

    Hope this helps. Please do not hesitate to contact me with any questions.

    Template_HierarchicalGrid.zip
Reply Children