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

[Solved] Combobox in GridView when using Ria services

1 Answer 122 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Dan
Top achievements
Rank 1
Dan asked on 14 Feb 2011, 05:02 PM
Hi

Im am using Silverlight 4 in combination with Ria Services and the entity framework. My business objects have several enums, that I have exposed in partial shared classes that are accessible on the server and the client.

In the gridview, i want to display the enumeration values (or better the description strings) in a combobox. However, this does not work properly. These are the problems i stumbled over:

- When I bind the gridview-combobox colum to the enum property, the query throws an exception because the enum property cannot be part of the query.
- When I bind the gridview-combobox colum to the corresponding value property, the values are not displayd. (although I can add the enum values to the itemsSource property of the combobox, so that they appear when the combobox gets the focus. However, the value of the business-object is never displayed :-(

I ve been fiddling with IValueConverters etc. but with no success. I am sure this must work as this should be a rather common scenario.

I appreciate any help.

Greetings and thanks

Dan

1 Answer, 1 is accepted

Sort by
0
Accepted
Maya
Telerik team
answered on 14 Feb 2011, 05:20 PM
Hi Dan,

Firstly, you may take a look at our demos and online documentation for a reference on the way of implementing GridViewComboBoxColumn. Furthermore, you may take a look at this forum thread for a sample project of using that particular column when working with RIA Services and Entity Framework.  
As far as the second issue is concerned, this article might be helpful. 
In case none of those references help for your case, it would be great if you could share a bit more about your application, its settings and the definitions of the business objects.

Regards,
Maya
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
GridView
Asked by
Dan
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or