I have 3 combos on a page, the item selected in combo 1 determines the items displayed in combo 2 and the item selected in combo 2 determines the items in combo 3. Ive used the ItemsRequested event and it all seems to work ok, but with one problem. Whenever I need to refer to the selecteditem.value of combo 1 in my code behind, its always set as the first item in the list regardless of whats been selected, so im assuming the view state hasnt been updated because of the AJAX postbacks. How can I get the selected value ?
Ivre tried the ClientItemsequestiong event but it too always has the firts item in the list. This is what Ive tried
Ivre tried the ClientItemsequestiong event but it too always has the firts item in the list. This is what Ive tried
function OnClientItemsRequesting(sender, eventArgs) { |
var context = eventArgs.get_context(); |
var typeCombo = $find("<%= RadComboBoxArtistType.ClientID %>"); |
context["FilterString"] = typeCombo.get_text(); |
var sel = typeCombo.get_text(); |
} |
<telerik:RadComboBox ID="RadComboBoxArtistGenre" Runat="server" OnClientSelectedIndexChanging="LoadCategories" OnClientItemsRequesting="OnClientItemsRequesting" |
OnClientItemsRequested="ItemsLoaded" Skin="Office2007" |
Width="250px" onitemsrequested="RadComboBoxArtistGenre_ItemsRequested" |
EnableLoadOnDemand="true" > |
<CollapseAnimation Duration="200" Type="OutQuint" /> |
</telerik:RadComboBox> |