Control event that fires before PageLoad? Is it possible?

S

Strife_SD

Hello,

I'm trying to develop a custom grid pager control. I would like it so that
the user clicks the page change button on the control and the page does a
post back and the server control changes the page number, the page then loads
the data and binds it to the gird via the PageLoad event. The problem is
that the grid page change event occurs after the PageLoad, so the correct
page number is not updated in time for the data call. I've got around the
problem by moving the data call \ databind of the grid to the PreRender
event, which occurs after the page change event, but if I turn viewstate off
on the grid the page change event never fires. I'm assuming this occurs
because the PreRender is late in the page life cycle and the control can not
load it's state? The Telerik grid that I'm using requires that the grid
pager be created dynamically, every time the page is loaded. I'm new to
custom server controls. Does anyone know how to make it so the control can
process the data before the pageload fires? Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top