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

Is there anything analogous to IValueConverter to allow binding to a field in ViewModel that requires a transformation to render it?

1 Answer 63 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Shira
Top achievements
Rank 1
Shira asked on 15 Apr 2011, 08:13 PM
I'd like to broaden this question, but the forum doesn't allow me to change the title, so I'm putting up a new posting instead here:  http://www.telerik.com/community/forums/aspnet-ajax/grid/cleanest-way-to-bind-non-datatable-source-to-dropdownlist-in-code-behind.aspx


FYI, Below is my original question, which I'm still curious about, but what I really need to do is answer the broader question in the other post.

I have a couple of fields in my ViewModel that are integer representations of the Ids of a field whose name should be displayed to the user.  I would like to have a GridBoundColumn to represent them in my RadGrid's view mode, but for that to work, I need there to be an intermediary class that does a conversion from the integer underlying value to the text value the user needs to see.  Is there any provision for this with RadGrid, or if not, then what is the recommended practice for such a case?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Marin
Telerik team
answered on 21 Apr 2011, 08:08 AM
Hi Shira,

I believe we have discussed these questions in the referenced forum thread.

Thank you,
Marin
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
Shira
Top achievements
Rank 1
Answers by
Marin
Telerik team
Share this question
or