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

Dynamic binding to a ComboBox Columm

1 Answer 172 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 19 Mar 2015, 05:14 PM
I have a RadGridView that displays a list of dates.

Each date has a corresponding column called "Status" which is a ComboBox column.

My problem is that the ComboBox column list options vary depending upon the type of Date.

Is it possible to dynamically vary the itemsource per row based upon the date type?

I found this example which is close to what I need but am not sure if this can be implemented in the Telerik GridView.

Example: http://sekagra.com/wp/2013/04/dynamic-itemssource-for-combobox-in-a-datagrid/ 

Any assistance is Much Appreciated!

MikeF

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 21 Mar 2015, 11:02 AM
Hello Mike,

In order to achieve your goal, I would suggest you using ItemsSourceBindingYou can check the article on ComboBox Column to better understand how you should configure the ItemsSourceBinding for GridViewComboBoxColumn. 

You can also download a runnable project of the previous example from the SDK repository here.
Although GitHub is a very well-known platform we saw a better and easier approach for reviewing our examples by developing SDK Samples Browser.

Regards,
Dimitrina
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
GridView
Asked by
Michael
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or