Hello,
I have this Kendo DropDownTree control:
<kendo-dropdowntree name="ddtNamespaces" datavaluefield="Value" filter="FilterType.Contains" datatextfield="Text" style="width: 100%;"
check-all="true"
on-change="onNamespaceChange"
on-close="onNamespaceClose"
on->
<hierarchical-datasource>
<transport>
<read url="@Url.Action("GetNamespaceListFromATAsync", "AI")" />
</transport>
<schema type="json">
<hierarchical-model id="Id"></hierarchical-model>
</schema>
</hierarchical-datasource>
<checkboxes enabled="true" />
</kendo-dropdowntree>
I should send an ajax call after control change. When the user normally select a node it's working fine, but when the user clicks on 'All Items' node then the change event will be fired the combo-items-count times. So if I have 100 items in the combo, after click on 'All Items' the change event will be fired 100 times. This is not good for me, I would like send only one ajax call when 'All Items' item is selected.
I try a workaround to use the close event, and send the ajax call after closing the popup, but the close event is firing before all change event is finished so this not works.
Do you have any other idea to solve this? Thank you!