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

Run Javascript after an Ajax Insert or Update

2 Answers 111 Views
Grid
This is a migrated thread and some comments may be shown as answers.
sam
Top achievements
Rank 1
sam asked on 06 Aug 2011, 09:15 AM
Hi,

I have my radgrid set to use Ajax. I would like to run some javascript after every edit or insert on my grid.

I have tried binding to the onGridCreated and onRowCreated events but they fire too often.

If there any way to say "after a row has been inserted or updated run this javascript" ?

Thanks
Sam

2 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 10 Aug 2011, 05:13 PM
Hello Sam,

Thank you for contacting us.

You could execute the script in ItemCommand by verifying the CommandName. In the ItemCommand event you could register the client script using the following approach:
http://www.telerik.com/help/aspnet-ajax/ajax-execute-custom-javascript.html


Best wishes,
Maria Ilieva
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Maria Ilieva
Telerik team
answered on 10 Aug 2011, 05:13 PM
Hello Sam,

Thank you for contacting us.

You could execute the script in ItemCommand by verifying the CommandName. In the ItemCommand event you could register the client script using the following approach:
http://www.telerik.com/help/aspnet-ajax/ajax-execute-custom-javascript.html


Best wishes,
Maria Ilieva
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
sam
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or