I would like to select a row with JavaScript without triggering the change event, but it should fire when a mouse click is selecting a row. How can I do this? When I google I saw that in the past that the JS select and change trigger was seperated.
With kind regards,
Cees
2 Answers, 1 is accepted
0
Stefan
Telerik team
answered on 14 Nov 2016, 11:54 AM
Hello Cees,
There is not built-in approach to prevent the change event if it is fired from the select method using JavaScript.
I can suggest using a flag which will check if the change event is fired by the user or not, and based on this information to execute or not the desired code.
Please check the Dojo example demonstrating this implementation:
I hope this will help to achieve the desired result.
Regards,
Stefan
Telerik by Progress
Build rich, delightful, *native* Angular 2 apps with Kendo UI for Angular 2. Try it out today! Kendo UI for Angular 2 (currently in beta) is a jQuery-free toolset, written in TypeScript, designed from the ground up to offer true, native Angular 2 components.