I have a class derived from RadGrid, to which i would like to add a hidden input and possibly other controls. I'd like to put those at the root level - adding them to the main div (so that these added controls would be siblings of the MasterTableView), but it doesn't seem possible. I've tried overriding CreateChildControls, OnLoad, PreRender, and other functions, at which point i'd try to do a simple this.controls.add(). But the controls i add in this manner never get rendered out to the page - regardless of which function i'm in.
The only way i've been able to render those controls out is if i add them to a cell in the command item. But that command row won't always be visible, so that doesn't seem like a very solid solution.
Any ideas? What's the best way to add child controls to a RadGrid derived class? Preferably without resorting to turning the whole thing into a composite control.
-RP
The only way i've been able to render those controls out is if i add them to a cell in the command item. But that command row won't always be visible, so that doesn't seem like a very solid solution.
Any ideas? What's the best way to add child controls to a RadGrid derived class? Preferably without resorting to turning the whole thing into a composite control.
-RP