This question is locked. New answers and comments are not allowed.
Preslav Rachev
Top achievements
Rank 1
Preslav Rachev
asked on 23 Apr 2010, 10:34 AM
How can I prevent the onRowSelected event being thrown when only editing/deleting a grid row ? It doesn't make any sense to load related information after deleting a row, and I want to avoid that
4 Answers, 1 is accepted
0
Preslav Rachev
Top achievements
Rank 1
answered on 26 Apr 2010, 07:34 AM
I will be very grateful, if you could help me with this issue.
All I can think of are a few JQuery hacks, but they are not applicable in the general case
All I can think of are a few JQuery hacks, but they are not applicable in the general case
0
Hello Preslav Rachev,
Currently you have to modify the grid source. Edit the telerik.grid.editing.js file and add e.stopPropagation() in every .live('click') event subscription e.g.:
BEFORE:
$('.t-grid-edit', grid.element).live('click', function(e) {
e.preventDefault();
grid.editRow($(this).closest('tr'));
});
AFTER:
$('.t-grid-edit', grid.element).live('click', function(e) {
e.preventDefault();
e.stopPropagation();
grid.editRow($(this).closest('tr'));
});
Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Currently you have to modify the grid source. Edit the telerik.grid.editing.js file and add e.stopPropagation() in every .live('click') event subscription e.g.:
BEFORE:
$('.t-grid-edit', grid.element).live('click', function(e) {
e.preventDefault();
grid.editRow($(this).closest('tr'));
});
AFTER:
$('.t-grid-edit', grid.element).live('click', function(e) {
e.preventDefault();
e.stopPropagation();
grid.editRow($(this).closest('tr'));
});
Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
El Roy
Top achievements
Rank 1
answered on 06 Jun 2010, 07:56 AM
added e.stopPropagation(); but sill RowSelected get fired when inserting/editing/deleting a row.
0
murali
Top achievements
Rank 1
answered on 01 Jul 2010, 11:02 PM
I am having the same issue when I try to add a new row using ajax editing.
mm