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

[Solved] How to select related item in GridDropDownColumn when another GridDropDownColumn 's selectedindex changes.

1 Answer 153 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kem Arda
Top achievements
Rank 1
Kem Arda asked on 21 Oct 2009, 11:49 AM
I have two GridDropDownColumn that resides in my RadGrid. When i select an item in the first one i wantto dislay related item in the second one over the same ID that is stored on both GridDropDownColumn 's DataField and ListValueField property.

And here are my GridDropDownColumns:

<telerik:GridDropDownColumn DataField="HizmetId" DataSourceID="LLBLGenProDataSourceHizmet" 
                        HeaderText="Hizmet Adı" ListTextField="HizmetAdi" ListValueField="HizmetId" 
                        UniqueName="HizmetId" ColumnEditorID="GridDropDownColumnEditor1"  > 
                    <ItemStyle Width="400px"></ItemStyle> 
                    </telerik:GridDropDownColumn> 
       
    
      <telerik:GridDropDownColumn DataField="HizmetId" DataSourceID="LLBLGenProDataSourceHizmet" 
                        HeaderText="Tutarı" ListTextField="Tutar" ListValueField="HizmetId" 
                        UniqueName="TutarGoster" ColumnEditorID="GridDropDownColumnEditor2"  ReadOnly = "true"
                    <ItemStyle Width="400px"></ItemStyle> 
                    </telerik:GridDropDownColumn> 

When i select a service from the first GridDropDownColumn i wantto display the price of it in the second one.

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 26 Oct 2009, 07:09 AM
Hi Kem,

To see more information on the requested functionality, please refer to the following article:

http://www.telerik.com/community/code-library/aspnet-ajax/general/using-related-radcomboboxes-in-radgrid.aspx

I hope this gets you started properly.

Best wishes,

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
Kem Arda
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or