A
AndrewMBaldwin
I have a grid control (inherits from Placeholder) that has a few
buttons on it. On this grid there is a filter form, which allows the
user to filter/search the table for specific information. My problem
is, that the order in which the event gets called. What is basically
happening is that the control is instantiated, I call my initialize
method, then I wait for the user to call GenerateGrid, in case they
wanted to make any last minute changes to the grid that I don't have a
constructor for, or possibly add/remove event handlers from the grids
buttons, etc. The problem is that unless I actually generate and add
the grid control to a page, the filter event never fires off. And then
when it does, I generate the grid, add it to the page, then the filter
event fires off and REgenerates the grid. I have tried putting the code
that calls the GenerateGrid function in the pages pre-render method,
last step before rendering, but then the filter event never even fires.
I know this sounds complicated, but please bear with me and hopefully
we can get this figured out...
AB
buttons on it. On this grid there is a filter form, which allows the
user to filter/search the table for specific information. My problem
is, that the order in which the event gets called. What is basically
happening is that the control is instantiated, I call my initialize
method, then I wait for the user to call GenerateGrid, in case they
wanted to make any last minute changes to the grid that I don't have a
constructor for, or possibly add/remove event handlers from the grids
buttons, etc. The problem is that unless I actually generate and add
the grid control to a page, the filter event never fires off. And then
when it does, I generate the grid, add it to the page, then the filter
event fires off and REgenerates the grid. I have tried putting the code
that calls the GenerateGrid function in the pages pre-render method,
last step before rendering, but then the filter event never even fires.
I know this sounds complicated, but please bear with me and hopefully
we can get this figured out...
AB