The DataView's template,was always called


#1

Hi,I used DataView’s template.When the DataView was create,the ‘template’ function was callde 1 time.But when the item in the DataView,was clicked( chosed), the ‘template’ function was called 2 times.
So,Whenever I clicked the item,the ‘template’ function was called 2 times?
That’s right?Why?


#2

thank you for your report. This is the bug. We’ll try to fix it in the future updates.


#3

Hello, now you’re able to add the event handlers inside the template, which is allowing to execute the needed functionality for thaese templates:
https://docs.dhtmlx.com/suite/dataview__configuration.html#eventhandlersforthetemplate