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

ComboBoxColumn with xaml

2 Answers 14 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 23 Mar 2011, 02:48 PM
I'm trying to create a combobox in a RadGridView on the fly, just using XAML.
If I have something like:

<telerik:RadGridView.Columns>
      <telerik:GridViewComboBoxColumn>
            

     </telerik:GridViewComboBoxColumn>
</telerik:RadGridView.Columns>

In between the GridViewComboBoxColumn tags, I would like to just say...
<ComboBoxItem value ="one">
<ComboBoxItem value="two">

etc... Is there a way to do this? Or do I just have to create a collection in code and bind the column to the collection?

Thanks,
Dan

2 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 23 Mar 2011, 03:08 PM
Hello,

 You can do this with CellTemplate and a combo declared directly in the template - you cannot do this with the combo column.

Kind regards,
Vlad
the Telerik team
0
Milan
Telerik team
answered on 23 Mar 2011, 03:10 PM

Hello Daniel,

Could you please check out this help article which will get you started. 



Kind regards,
Milan
the Telerik team
Tags
GridView
Asked by
Daniel
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Milan
Telerik team
Share this question
or