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

Choose selected comboboxitem

1 Answer 14 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ahrensberg
Top achievements
Rank 1
Ahrensberg asked on 09 Jan 2010, 10:27 PM
I have a RadGrid in which I use a GridTemplateColumn for later editing the content. In the EditItemTemplate I have a RadComboBox which i fill with data by the OnInit event, but how can I based on the RadGrid datasource selected an item in the combobox?

I have following code:

<telerik:GridTemplateColumn HeaderText="<%$ Resources:LanguageWeb, Depot %>" EditFormColumnIndex="1" 
    Visible="false">  
    <ItemTemplate> 
    </ItemTemplate> 
    <EditItemTemplate> 
        <telerik:RadComboBox ID="RcbDepot" runat="server" HighlightTemplatedItems="true" 
            OnInit="RcbDepot_Init" />
    </EditItemTemplate> 
</telerik:GridTemplateColumn> 

It would be nice with some kind of "SelectedValue" attribute, so I could do something like:

SelectedValue='<%# Bind("DepotID") %>' 

Anyone have an idea what to do?

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 11 Jan 2010, 07:54 AM
Hello Ahrensberg,

Our system shows that you have opened a support ticket on the same issue. The ticket will be addressed shortly. To avoid duplicate posts, we can continue our communication there.

Greetings,
Yavor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Ahrensberg
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or