Changing template of one item dynamically in dhtmlxdataview

Hi…

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. …,

Thanks
Seenu

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(); }

or

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

hi…

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