I have a fairly simple page that contains a DropDownList control and a DetailsView control in a master/details type setup.
The DetailsView displays the details of the record selected in the DropDownList.
This form works perfectly without RadAjaxManager.
However, as soon as I hook up the RadAjaxManager I get errors in the code.
Troubleshooting the issue I was able to determine that the DetailsView.DataBound event is being triggered BEFORE the DropDownList.DataBound event. Code in the DetailsView.DataBound event populates a control within the DetailsView with data associated with the currently selected item in the DropDownList. But an error occurs because there is no DropDownList.SelectedValue because the DropDownList control hasn't been databound yet.
As I said, this does not occur when RadAjaxManager is not on the page.
What do I need to set in RadAjaxManager to make sure that the controls get bound in the correct order? (top-down)
Note I've hooked up event handlers for DetailsView.ModeChanged and DetailsView.DataBound. Also note I've hooked up the DropDownList.PreRender event as well with the following code:
|CType(sender, DropDownList).Attributes.Add("onChange", "window.focus();")
I need to have this code because the user may use his mouse wheel to scroll the page, but if the DropDownList is selected it will scroll that instead and reload the DetailsView.