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

[Solved] Grouping with GroupRowStyle causes application to crash?

3 Answers 149 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.
Zack
Top achievements
Rank 1
Zack asked on 02 Mar 2010, 12:49 PM
Hi,

I am internal build 2009.3.1426.1030.

When my grid has a GroupRowStyle (standard style no changes to what is emitted in Blend) - if I group by dragging a column, in xaml or by code, the whole application crashes?

Any help very welcome.

Thanks

Zack

3 Answers, 1 is accepted

Sort by
0
Kalin Milanov
Telerik team
answered on 05 Mar 2010, 08:06 AM
Hello Zack,

After some testing on my part I was unable to reproduce the problem you are having.
Attached I am sending you a sample application with applied GroupRowStyle (without any changes to it) and some sample data. Could you please modify the project as to demonstrate the crash so I can be of further assistance.

Regards,
Kalin Milanov
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
Zack
Top achievements
Rank 1
answered on 05 Mar 2010, 12:51 PM
Hi Milan,

Thanks for that.

I have determined why the crash occurs.

It happens I change the theme of the style using the Blend designer.

The theme is generated like this;

<

 

telerik:Office_BlackTheme x:Key="Theme"/>

 


Once you change it in the blend designer - it is like this;

<

 

System:String x:Key="Theme">Windows7</System:String>

 


With the theme set like this - it crashes the whole application when grouping.

So I can just manually set the theme correctly which works.

On anoher point, is there a way to have the generated template output be the output of the theme of the grid?

So if the grid is a Windows7 theme, the GridViewGroupRowStyle would output with the Windows7 theme?  Currently it outputs the brushes etc from the default theme.

Many thanks

Zack
 

0
Milan
Telerik team
answered on 05 Mar 2010, 02:03 PM
Hello Zack,

Currently, it is not possible to output styles based on the current theme as Blend does not know which theme is applied. You could try using the Themes solution that is supplied with our .msi setup package - this solution contains all styles, templates, brushes, etc. of our themes.


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.
Tags
GridView
Asked by
Zack
Top achievements
Rank 1
Answers by
Kalin Milanov
Telerik team
Zack
Top achievements
Rank 1
Milan
Telerik team
Share this question
or