I need this functionality as well...
I would expect the RadComboBoxSelectedIndexChangedEventArgs to include .Text, .Value and .Index properties at the least.
.SelectedIndex() is essential in my understanding of how to make synchronized comboboxes work properly via AJAX.
If I had a selected Index collection, I could use the NeedsDataSource to rely on the data being populated during the ajax call, even if it is reloaded.
Having support for Multiselection, i.e. SelectedIndex() instead of .SelectedIndex is important as well.
to further expand on this...
I have a radComboBox on a Master Page.
The Master Page has a RadAjaxManager
The radComboBox is set to AutoPostBack=True
The AjaxManager is set so that FacilitySelector Updates FacilitySelector
This code does not work...
Private Sub FacilitySelector_SelectedIndexChanged(ByVal o As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles FacilitySelector.SelectedIndexChanged
Dim cbo = TryCast(o, Telerik.Web.UI.RadComboBox)
If cbo IsNot Nothing Then
Try
If Session("FacilityUID") <> CInt(cbo.SelectedValue) Then
Session("FacilityUID") = CInt(cbo.SelectedValue)
End If
Catch ex As Exception
End Try
End If
End Sub
The FIRST time it does in fact work, it sets the sessionvar and updates the control.
Subsequent Changes do NOT work because the SelectedIndex is always the same, the first item selected.
I have tried setting EnableViewState both ways, and various other things but I cannot access he newly selected item after the first selection.
I DO NOT want to do this with JavaScript, this should be a server-side function that works with AjaxManager.
e.Text is Correct showing the newly selected text and so does the following code, but this just seems like a Kludge since e.Text is not considered Unique (but in fact "most likely is" in my particular case).
Private Sub FacilitySelector_SelectedIndexChanged(ByVal o As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles FacilitySelector.SelectedIndexChanged
Dim cbo = TryCast(o, Telerik.Web.UI.RadComboBox)
If cbo IsNot Nothing Then
Try
Dim item As Integer = cbo.FindItemIndexByText(e.Text)
cbo.SelectedIndex = item
If Session("FacilityUID") <> cbo.SelectedValue Then
Session("FacilityUID") = cbo.SelectedValue
End If
Catch ex As Exception
End Try
End If
End Sub