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

[Solved] Looking for a grid event ...

3 Answers 62 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
FinallyInSeattle
Top achievements
Rank 1
FinallyInSeattle asked on 18 Nov 2011, 01:12 AM
I need to execute some js code AFTER a row is deleted.  I've hooked up OnDelete, but that fires prior to the prompt.  I've tried OnSave, OnDataBinding and OnDataBound, but they don't execute.  Where can I plug in this code to have it execute at the proper time?

FYI: Using Batch edit and the latest release (2011.3.1115.340)

3 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 22 Nov 2011, 03:32 PM
Hello Finallyinseattle,

You need to use the OnComplete event - it is raised when the response from an Ajax request is received.

 

Kind regards,
Georgi Tunev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
0
FinallyInSeattle
Top achievements
Rank 1
answered on 30 Nov 2011, 09:07 PM
I'm not seeing OnComplete fire when I delete a row in a grid using Batch editing (InCell).  Is there some other mechanism that I can use?
0
Georgi Tunev
Telerik team
answered on 01 Dec 2011, 10:33 AM
Hi Finallyinseattle,

As I said,  the OnComplete event is raised after a successful Ajax operation. Deleting a row in batch editing mode does not trigger any Ajax requests hence the event is not raised. OnComplete will be raised when the user submits the changes.
Could you please give me more details on what exactly you want to achieve? There may be another way to accomplish it.

Regards,
Georgi Tunev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
Tags
Grid
Asked by
FinallyInSeattle
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
FinallyInSeattle
Top achievements
Rank 1
Share this question
or