This is a migrated thread and some comments may be shown as answers.

[Solved] RadComboBox in TemplateColumn

1 Answer 168 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Markus
Top achievements
Rank 2
Markus asked on 14 Apr 2008, 06:30 AM
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
Markus

1 Answer, 1 is accepted

Sort by
0
Markus
Top achievements
Rank 2
answered on 14 Apr 2008, 02:05 PM
I am sorry for posting twice.
It happened because of an internal communications problem!

First Post:
http://www.telerik.com/community/forums/thread/b311D-bdbgca.aspx

thx for answering
Tags
Grid
Asked by
Markus
Top achievements
Rank 2
Answers by
Markus
Top achievements
Rank 2
Share this question
or