I am trying to understand what is happening and I need a lifecycle explanation.
I have an RadAjaxPanel where on page load, I dynamically creat and populate three comboboxes. Combobox 1 drives the data in combobox 2 and combobox 3. I have set the autopostback to true on these controls. Combobox 1 defaults to Item A, Combobox 2 defaults to Item M, Combobox 3 defaults to Item X.
If I change Combobox 1 to Item B, this change is not see during the page load event because the control is being created. Therefore, combobox 2 and combobox 3 are filled with the items that correspond to Item A in combobox 1. Since "viewstate" has not been applied at this time, the combobox 1 thinks its value is Item A.
During the SelectedItem event, the viewstate has loaded and the combobox now has item B. I assume that at this point I can clear out and re-load combobox 2 and 3 to have their data on the page updated.
Just for fun, I decided to fill combobox 2 with different data on the page load event if the page was in a postback. Imagine my surprise when the combobox 2 showed the original data that was loaded the first time in the page and not the "New" data I forced in during the postback. Why is this? Is the viewstate holding all of the valid data items for this control and resetting it after the page load event?
I have an RadAjaxPanel where on page load, I dynamically creat and populate three comboboxes. Combobox 1 drives the data in combobox 2 and combobox 3. I have set the autopostback to true on these controls. Combobox 1 defaults to Item A, Combobox 2 defaults to Item M, Combobox 3 defaults to Item X.
If I change Combobox 1 to Item B, this change is not see during the page load event because the control is being created. Therefore, combobox 2 and combobox 3 are filled with the items that correspond to Item A in combobox 1. Since "viewstate" has not been applied at this time, the combobox 1 thinks its value is Item A.
During the SelectedItem event, the viewstate has loaded and the combobox now has item B. I assume that at this point I can clear out and re-load combobox 2 and 3 to have their data on the page updated.
Just for fun, I decided to fill combobox 2 with different data on the page load event if the page was in a postback. Imagine my surprise when the combobox 2 showed the original data that was loaded the first time in the page and not the "New" data I forced in during the postback. Why is this? Is the viewstate holding all of the valid data items for this control and resetting it after the page load event?