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

Cell Template Selector ?

4 Answers 203 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Benedict
Top achievements
Rank 1
Benedict asked on 16 Mar 2010, 08:36 AM
Hello,

I have table with a XML-Column (XElement). I would like to format the cell according to the specified XML-Data, so I was looking for a GridViewDataColumn.CellTemplateSelector but I did not found one.

Do you have an easy way to get this behaviour?

I have several DataTemplates for the XMLs which I want to use.

I was trying to style the GridViewCell and set the ContentControl.ContentTemplateSelector but this was not recognized by the RadGridView.

Do I have any other oportunities ?

Benedict

4 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 16 Mar 2010, 08:44 AM
Hello Benedict,

Currently we don't have template selectors and the easiest way to achieve your goal is demonstrated on this blog post:
http://blogs.telerik.com/pavelpavlov/posts/09-10-03/adding_additional_power_to_radgridview_for_silverlight_with_attached_behaviors.aspx

We will do our best to add template selectors for Q2 2010 (beta middle of June)

Regards,
Vlad
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
Benedict
Top achievements
Rank 1
answered on 16 Mar 2010, 08:49 AM
So I bind the CellTemplate to a IValueConverter which resolves a DataTemplate ?

0
Vlad
Telerik team
answered on 16 Mar 2010, 08:52 AM
Hello Benedict,

Indeed the idea is to use IValueConverter to apply desired customization.

Sincerely yours,
Vlad
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
Benedict
Top achievements
Rank 1
answered on 16 Mar 2010, 08:56 AM
So far I used IValueConverter for Bindings to resolve a value for the target dependency property, like colors from an enum etc.

Now I habe a complex XML-Structure and I want a visualize it with several controls (like Gridlayout etc.)
I think, IValueConverter will lead to much overhead here.
Tags
GridView
Asked by
Benedict
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Benedict
Top achievements
Rank 1
Share this question
or