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
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