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

RAD Grid Clientside Inline Delete

1 Answer 63 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jiten
Top achievements
Rank 1
Jiten asked on 07 Feb 2012, 05:45 PM
I have a RAD Grid that has Grid Client Delete Column which fires OnRowDeleted client event. The Grid also allows row select single only, and has a OnRowSelected event. However my problem is that when the user presses the delete button in the delete column it fires the OnRowDeleted event (which is fine) but then fires the OnRowSelected event which I do not want as the OnRowSelected event goes through to another page.
Is there anyway to stop the OnRowSelected event to fire.

Thanks

1 Answer, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 08 Feb 2012, 12:25 PM
Hello Jiten,

The sequence in which the events are fired is as follows:

1. OnRowDeleted

2. OnRowSelecting

3. OnRowSelected

So what you need to do is set a flag in the OnRowDeleted event, check for that flag in the OnRowSelecting event and if the flat is set (that is, if a delete operation is in progress) cancel the event: args.set_cancel(true).

Hope it helps. 

Greetings,
Tsvetoslav
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
Grid
Asked by
Jiten
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Share this question
or