Changing template of one item dynamically in dhtmlxdataview


How can i change template of the one item dynamically…like when im selecting a item in dataview…, only that item template should be changed all other item templates should be default as old one…, Please assit me. …,


There are two ways

a) you can create a single complex template

template:function(obj){ if (obj.special) return exec_one_logic(); else return exec_other_logic(); }


b) you can set the
and use “template_some” in dataview’s configuration to define the specific template.


That would change all the item templates…i want to change only one item in template

you can change the value of obj.special and for different values template will executed different logic, so some items will use one template and some - another template