i have a customized radgrid in my page that some script have set for ongriddestroyed event. my script get all controls and their value in page and sent them with Ajax to server side. consider a buton on page too that cause a postback, but i want my javascript code fire before any post back in page . i tryed window.onbeforeunload , it works fine till i use radajaxpanel or a update panel on page…
is there any javascript event that fire before any post back that i can set for my radGrid or its parent that is a div element?
thanks
The ASP.Net Ajax
RadAjaxManagercomponent of the telerik control suiteprovides a client side event handler called
OnRequestStart.OnRequestStartis called when an ajax request is started bySo, the
OnRequestStarthandler is a good place to executea client side script before an AJAX request is executed (e.g. triggered by an control inside an
RadAjaxPanel).You can also cancel the AJAX request in the
OnRequestStarthandler.For more information see the telerik online help on this topic.
You will also find an example there.