This is a migrated thread and some comments may be shown as answers.

Grid change event is fired during custom command click

2 Answers 166 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Praneeth
Top achievements
Rank 1
Praneeth asked on 23 Aug 2013, 09:18 AM
Hi,

I am currently trying out some activities using the Kendo Grid and have an issue where the grids change event is being fired every time the a custom command is clicked. This happens in IE 10 and i would greatly appreciate if Kendo UI experts can help me figure out a possible solution. I've gone through quite a number of threads but found no avail.

A sample can be found at this location at http://jsfiddle.net/praneethw/eudVd/4/

The steps are as follows,
Click on the 'Remove' command.
Notice the browser console where the Grid Changed and Removed Item is being printed. This means that the gridChange() function and removeItem() function are both being invoked.

I used the following code block, to prevent the event from bubbling. However in IE 10 this does not seem to work properly. Could anyone help me out on this please.
// Prevent the grid command 'click' event from triggerring the grids 'change' event.
grid.tbody.on('mousedown', 'a', function (evnt) {
    evnt.stopImmediatePropagation();
});
Thanks and Regards,
Praneeth

2 Answers, 1 is accepted

Sort by
0
Accepted
Petur Subev
Telerik team
answered on 27 Aug 2013, 06:24 AM
Hello Praneeth,

For InternetExplorer there is different event that is used and it is called MSPointerDown

http://jsfiddle.net/eudVd/5/

I hope this helps.

Kind Regards,
Petur Subev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Praneeth
Top achievements
Rank 1
answered on 27 Aug 2013, 12:17 PM
Hi Petur,

Thank you for the answer!! I was unaware of this and you response helped resolve the issue!!

Many Thanks,
Praneeth
Tags
Grid
Asked by
Praneeth
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Praneeth
Top achievements
Rank 1
Share this question
or