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

Editable GridView with Combobox Column

1 Answer 99 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Missing User
Missing User asked on 20 Oct 2011, 07:00 PM
Hi!

I need to implement a complex scenario, I have a RadgridView and for each row i have a RowDetailsTemplate that are other RadGridView.
The DetailGridView is a "blank" grid, i mean with no data, because the User must input the values and save then.  Also in this Grid i must have a ComboBox column, the combobox shows to the user a collection of categories.

The look of the grid is like this:

Category | Quantity |  Price
COMBO     10             10,25

My question is, is there a way to fill the ComboBox with a list typeof Categories, and the grid is bound to a blank list typeof Itens?

Thank you!

1 Answer, 1 is accepted

Sort by
0
Accepted
Maya
Telerik team
answered on 21 Oct 2011, 07:11 AM
Hello Joao Paulo Grassi,

You can bind GridViewComboBoxColumn in the grid insider RowDetails just like:

<telerik:GridViewComboBoxColumn DataMemberBinding="{Binding ClubID}" SelectedValueMemberPath="ID"
                                                                 DisplayMemberPath="Name"
                                                                 ItemsSource="{Binding Clubs, Source="{StaticResource MyViewModel}"}" />

You can define a default value for the ClubID property and prompt the user to change it on adding a new item. 

 

All the best,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
Missing User
Answers by
Maya
Telerik team
Share this question
or