Hi. I am trying to access the value in a combobox. When the user clicks a LinkButton in the grid, I fire a command. Before the breakpoint i reached, I see the combobox resort back to the SelectedIndex of 0. Therefore, when the breakpoint is hit, the value is not the value selected by the user...
I tried both below, the grid is reloading PRIOR to me having a chance to retrieve the value and the combo value is already reset
I tried both below, the grid is reloading PRIOR to me having a chance to retrieve the value and the combo value is already reset
Dim
dataItem As GridDataItem
dataItem =
DirectCast(e.Item, GridDataItem)
Dim ddl As Telerik.Web.UI.RadComboBox
ddl =
DirectCast(dataItem.FindControl("ddlTest"), Telerik.Web.UI.RadComboBox)
Dim qty As String = ddl.SelectedItem.Text
Dim qty2 As String = ddl.Text
Dim ddlQty As DropDownList
ddlQty =
DirectCast(dataItem.FindControl("ddlQuantity"), DropDownList)
Dim value As String = ddlQty.SelectedItem.Text
Dim value2 As String = ddlQty.Text