I know this has been asked in various ways before but I'm not finding a concise set of rules to follow. I have a page with some user controls. Each control is simply a wrapper around server controls, specialized to populate with specific data. They are UC's rather than new SC's, in case I need to add other components to each. The ordering of the data binding is important, as data for a RadGrid (for example) is generated using data selected in a RadComboBox plus a date from a RadDatePicker. The problem is that the ObjectDataSource on the RadGrid is databinding before the other controls. I believe the problem is that I've assigned the ODS to the grid in markup, but I'm not sure exactly where I'd implement the databinding operation manually.
I have a RadAjaxManager on the web form, and in code-behind I'm doing a FindControl to get the controls from each UC and then manually adding these to AjaxManagerSettings. This is what triggers the Ajax postbacks for each control. I don't know if that helps to determine the best way to approach this.
Thank you very much for any advice - or links to RTM...
[ Follow-up ] I've implemented DataBind event handlers for the page containing the UCs and in each UC. Then I manually fire DataBind() when needed. This seems to be working. If anyone is interested I can document this better but the idea is to avoid letting DataBind get automatically fired or handled for page, usercontrol, and components, and instead to ensure you manage the process. If anyone has a better way to do this, as the Ferengi say, I'm all ears. :)
I have a RadAjaxManager on the web form, and in code-behind I'm doing a FindControl to get the controls from each UC and then manually adding these to AjaxManagerSettings. This is what triggers the Ajax postbacks for each control. I don't know if that helps to determine the best way to approach this.
Thank you very much for any advice - or links to RTM...
[ Follow-up ] I've implemented DataBind event handlers for the page containing the UCs and in each UC. Then I manually fire DataBind() when needed. This seems to be working. If anyone is interested I can document this better but the idea is to avoid letting DataBind get automatically fired or handled for page, usercontrol, and components, and instead to ensure you manage the process. If anyone has a better way to do this, as the Ferengi say, I'm all ears. :)