Hi,
Our Telerik.Web.UI has been updated to version 2011.2.712.35 since I first posted but the issue remains.
To clarify a little, the LocationSelection user control has several RadComboBoxes and the values in each are changed (client-side) based on the selection of the previous. For example, when a building is selected, the next RadComboBox is filled (with the floors that building has) and opened for the next selection.
On the consuming page we have another RadComboBox (Equipment) whose items we wish to have dependent on the selected location. I am subscribing to the
onclientdropdownopening event on the Equipment RadComboBox, using the following code to trigger the
OnItemsRequested server-side event.
Inside the
OnItemsRequested event, the selected location is retrieved from the LocationSelection control. The issue is that the LocationSelection control returns the original location (more accurately the location that was selected prior to the last postback), not the location which was selected. Again, this is only true in the
OnItemsRequested scenario. When the selected location is requested by a button click (as in the Save button) it returns the correct location.
I have recently discovered that if:
1) a location is selected
2) any button is clicked that causes a postback
3) the Equipment dropdown is selected
it gets the correct location.
Perhaps this will help. As I was crafting this note, I noticed that while the code referenced above does cause the
OnItemsRequested event to fire, it often fires twice. Specifically, the first time the dropdown is clicked or after the "button-caused postback" the
OnItemsRequested event fires twice. I don't know if that is an issue though, because the problem seems to be in the fact that the LocationSelection isn't returning the updated values when selected.
Thanks again for any assistance you can offer,
Dan Norton