Mar 02, 2009, 10:05 PM
Get Combobox Selected item
Hello,
I add items to my combobox dinamically usind store databinding, and i add the next ajaxevent to fire the selection changed event
How can I obtain the Selected Item Value??
thanks
I add items to my combobox dinamically usind store databinding, and i add the next ajaxevent to fire the selection changed event
<ext:ComboBox Width = "150px" ID="SensorTypesComboBox" runat="server"
StoreID="MatchSensor" DisplayField="SensorName" Mode="Local"
onitemselected="SensorTypesComboBox_ItemSelected">
<AjaxEvents>
<Select OnEvent="SensorSelect">
</Select>
</AjaxEvents>
</ext:ComboBox>
protected void SensorSelect(object sender, AjaxEventArgs e)
{
string SelectedSendor = this.SensorTypesComboBox.SelectedItem.Value;
}
but I obtain an empty string from the SelectedItem.Value.How can I obtain the Selected Item Value??
thanks