The DataView's template,was always called

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?

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

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

1 Like