Hi,
I am using the gridview for the first time
And I need a simple combobox column
I have List<string> Types collecation that is holding all the types
Now the gridview is populated from data source with column Type (that is string)
All I need is to show the combobox column <telerikGrid:GridViewComboBoxColumn
with the proper selection of the Type
Tried to do it for a 2 hour...
Please help
Thanks
I am using the gridview for the first time
And I need a simple combobox column
I have List<string> Types collecation that is holding all the types
Now the gridview is populated from data source with column Type (that is string)
All I need is to show the combobox column <telerikGrid:GridViewComboBoxColumn
with the proper selection of the Type
Tried to do it for a 2 hour...
Please help
Thanks
5 Answers, 1 is accepted
0
Hi Felix,
Maya
the Telerik team
Firstly, you may take a look at our online documentation and demos that demonstrate how to implement GridViewComboBoxColumn. Furthermore, you may take a look at this forum thread for additional information or this one for a sample project.
Maya
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0

Felix
Top achievements
Rank 1
answered on 11 Nov 2010, 03:34 PM
When I said that I tried for 2 hours I meant that I did searched online docs, forums and any other possible way.
I will appreciate if you can help me
Thanks
I will appreciate if you can help me
Thanks
0

Felix
Top achievements
Rank 1
answered on 11 Nov 2010, 03:47 PM
The difference between the "sample project" you provided and my case is that you are using custom classes for the "Countries" and the "Persons".
Where I have "List<string> Types" (no IDs) and "TypeName" from the DataSource (the table)
So in my case:
Where I have "List<string> Types" (no IDs) and "TypeName" from the DataSource (the table)
So in my case:
<telerikGrid:GridViewComboBoxColumn
Header="Type"
ItemsSource="{Binding Types}" //this is the List<string> Types
DataMemberBinding="{Binding Type, Mode=TwoWay}" // Type is a column in the table
DisplayMemberPath="" //? it's from the List<string>
SelectedValueMemberPath="" //? it's from the List<string>
SortMemberPath="" //? it's from the List<string>
SortingState="Ascending"
/>
0

Felix
Top achievements
Rank 1
answered on 15 Nov 2010, 05:37 PM
any ideas?
0
Hello Felix,
Maya
the Telerik team
I am sending you a sample project illustrating how to bind the GridViewComboBoxColumn to list of strings. In this case you need to set only the DataMemberBinding property and the ItemsSourceBinding (ItemsSourceBinding is used in case the source is defined inside your business object, otherwise you need to use ItemsSource).
Maya
the Telerik team
See What's New in RadControls for WPF in Q3 2010 on Tuesday, November 16, 2010 11:00 AM - 12:00 PM EST or 10:00 PM - 11:00 PM EST: Register here>>