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

find a client Side event of radGrid or Div that occur before any postback

2 Answers 93 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Reza
Top achievements
Rank 1
Reza asked on 29 Jul 2012, 06:43 AM

hi friends,

i have a radgrid in my page that some script have set for OnGridDestroying event. my script get all controls and their value in page and sent them with Ajax to server side with a httprequest object . consider a button on page too that cause a postback, but i want to process my request object 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

2 Answers, 1 is accepted

Sort by
0
Accepted
Andrey
Telerik team
answered on 01 Aug 2012, 12:04 PM
Hello,

You could try to use the OnClientClick event of the button or the initializeRequest event of the PageRequestManager.

The initializeRequest is fired just before the request has been initialized and thus is should suite your needs.

All the best,
Andrey
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 RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Reza
Top achievements
Rank 1
answered on 04 Aug 2012, 04:52 AM
thanks andrey, it works for me.
Tags
Grid
Asked by
Reza
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Reza
Top achievements
Rank 1
Share this question
or