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

[Solved] Unbound rows and column span

6 Answers 119 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.
Daniele
Top achievements
Rank 1
Daniele asked on 24 Aug 2010, 10:30 AM
Hi all,

I'm implementing an application by using the MVVM pattern and I need to bind a collection to a GridView control.
However, there are some items in the collection which need to be displayed as a single text, so rows bound to those items should be spanned across all the columns of the grid and a specific text must be shown.
Also, they would be ignored when sorting data.

How can I achieve this goal?

I have gridview version 2010.1.309.1030

Thanks.
Regards.

6 Answers, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 24 Aug 2010, 01:57 PM
Hello Daniele,

I have attached a sample application that demonstrates how this can be achieved. You need a custom row style that will only display a single text field and span all columns. One you have this row style you need a Style Selector that will determine when this special row style should be applied. In my application I am applying this style to all Players that are playing defense. 


Greetings,
Milan
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
Daniele
Top achievements
Rank 1
answered on 24 Aug 2010, 02:02 PM
Hi,

thanks for the example, but I'm using silverlight 3 with Visual Studio 2008. Can I achieve the same goal with this configuration? If not, is there any work around I can consider?

Thanks.
0
Milan
Telerik team
answered on 24 Aug 2010, 02:14 PM
Hello Daniele,

There is no problem to do the same with Silverlight 3 and Visual Studio 2008 - the only requirement is that you upgrade to a more recent release since Style Selectors are not available in 2010.1.309.1030. Will that be convenience for you?


Best wishes,
Milan
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
Daniele
Top achievements
Rank 1
answered on 24 Aug 2010, 02:17 PM
Don't know if upgrade is feasible in my case, but I'll try to ask for it.
If not possible, what can I do?

Thanks.
0
Milan
Telerik team
answered on 24 Aug 2010, 03:03 PM
Hi Daniele,

I have updated the sample to use our latest Silverlight 3 controls (2010.2.812.1030) and I have also downgraded the project version to Visual Studio 2008.

If upgrade is not possible I guess we can try to implement this feature by using our RowLoaded event and apply the styles there but it would be great if you can upgrade to our latest version. 


Kind regards,
Milan
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
Daniele
Top achievements
Rank 1
answered on 24 Aug 2010, 03:06 PM
Thanks for the example. I'll try to ask for an update and hope to come back next week with any news.

Again, thanks.

Regards,
Tags
GridView
Asked by
Daniele
Top achievements
Rank 1
Answers by
Milan
Telerik team
Daniele
Top achievements
Rank 1
Share this question
or