Hello!
I have a RadGrid with two GridTemplateColumns. Each Column has a RadComboBox in the EditItemTemplate.
The Comboboxes have the Property "EnableLoadOnDemand" set to true and i use the "ItemsRequested" Event to populate them.
Now (if i am in InsertMode) i would like to read out the "SelectedValue" of the first Combobox in the "ItemsRequested" Event of the second (should be filled in order to whats selected in the first).
I am trying to access the "SelectedValue" with the following code:
############
(RadGrid1.MasterTableView.GetInsertItem().FindControl("cmbGrouping") as RadComboBox).SelectedValue;
############
The problem is that in the "ItemsRequested" Event of the second ComboBox this code returns an empty string but in the "RadGrid1_InsertCommand" Event it returns the correct ID.
Can anyone tell my what iam doing wrong or how to access the values of controls in different GridTemplateColumns??
thx in advance
Josef
I have a RadGrid with two GridTemplateColumns. Each Column has a RadComboBox in the EditItemTemplate.
The Comboboxes have the Property "EnableLoadOnDemand" set to true and i use the "ItemsRequested" Event to populate them.
Now (if i am in InsertMode) i would like to read out the "SelectedValue" of the first Combobox in the "ItemsRequested" Event of the second (should be filled in order to whats selected in the first).
I am trying to access the "SelectedValue" with the following code:
############
(RadGrid1.MasterTableView.GetInsertItem().FindControl("cmbGrouping") as RadComboBox).SelectedValue;
############
The problem is that in the "ItemsRequested" Event of the second ComboBox this code returns an empty string but in the "RadGrid1_InsertCommand" Event it returns the correct ID.
Can anyone tell my what iam doing wrong or how to access the values of controls in different GridTemplateColumns??
thx in advance
Josef

