I want to update a Label control which is inside the same GridItem (row).
I have added the OnSelectedIndexChanged Event to the combobox but i just cannot get the current row as it's (i assume) not selected when you change the combobox index.
I just want to select a new item in the combobox and make it updates the Label1 in the same ItemTemplate (findControl i guess but as mentioned i cannot find the currently selected index.
I tried something along the following but, i am missing something.
01.
Protected
Sub
cmbSetMarkup(
ByVal
sender
As
Object
, _
02.
ByVal
e
As
Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs)
03.
Dim
combo
As
RadComboBox =
DirectCast
(sender, RadComboBox)
04.
Dim
NewValue
As
String
= combo.SelectedValue
05.
06.
For
Each
markupItem
As
GridItem
In
RadGrid1.MasterTableView.GetItems( _
07.
New
GridItemType() {GridItemType.Item, GridItemType.AlternatingItem})
08.
Dim
LblPercent
As
Label =
CType
(WHATHERE.FindControl(
"MyPercent"
), Label)
09.
LblPercent.SelectedValue = NewValue
10.
Next
11.
12.
End
Sub