Editable GridView with Combobox Column

2 posts, 1 answers
  1. Missing user
    Missing user avatar

    Posted 20 Oct 2011 Link to this post


    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!

  2. Answer
    Maya avatar
    4062 posts

    Posted 21 Oct 2011 Link to this post

    Hello Joao Paulo Grassi,

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

    <telerik:GridViewComboBoxColumn DataMemberBinding="{Binding ClubID}" SelectedValueMemberPath="ID"
                                                                     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,
    the Telerik team

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

Back to Top