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

[Solved] Remove row leading space when grouped

6 Answers 135 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.
Ken
Top achievements
Rank 1
Ken asked on 10 Aug 2010, 03:17 PM
Hi,

Is there a way to remove the leading empty space on a row when the grid is in grouping mode? The look I'm after is that even when grouped, all rows look like when the grid is not grouped, plus there are the group headers which have their default look.

Thanks!

6 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 10 Aug 2010, 03:56 PM
Hi Adrian,

For that purpose you should edit the template of the GridViewRow,within its controltemplate you should find the IndentPresenter and set its  Visibility to Collapsed,you can also modfiy the different parts of that row in the way you need.I am sending you a sample project that demonstrates this approach. 
To the second part of your question-did you mean that you need to restyle the GridViewGroupRow or maybe I missed something?

Regards,
Vanya Pavlova
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
Ken
Top achievements
Rank 1
answered on 11 Aug 2010, 06:51 AM
Hi Vanya,

Your solution is pretty cool and easy to do and very close to what I want. There is just one more small thing: even in your example you can see if you expand the row that there is a piece of the row border missing in the top left area of the row...where the indent presenter was. Do you know how to fix this also? Then it's perfect :)

Thanks!
0
Vanya Pavlova
Telerik team
answered on 11 Aug 2010, 08:31 AM
Hi Adrian,

This raw border is actually GridView's FrozenColumnSplitter which you have to restyle too to achieve this result,I have changed a little bit and the RowIndicator to see the how it changes but actually you do not have to restyle it if you do not need .
Below you can download the updated project.
Please let me know if you need any further assistance.

All the best,
Vanya Pavlova
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
Ken
Top achievements
Rank 1
answered on 11 Aug 2010, 10:03 AM
Hi Vanya,

I downloaded the attached project but for me it looks still the same. Maybe I haven't explained properly what I'm after. Please see the attached screenshot where I circled the "missing" pieces.

Thanks.
0
Accepted
Vanya Pavlova
Telerik team
answered on 11 Aug 2010, 12:43 PM
Hi Adrian,

Please accept my apology for the omission, but in this way you will have to restyle the whole GroupRow and you have to find that border within GroupBorder's ControlTemplate to achieve this look.
You can download the updated project below.
Please let me know if you need any further assistance.

Greetings,
Vanya Pavlova
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
Ken
Top achievements
Rank 1
answered on 11 Aug 2010, 01:42 PM
Hey Vanya,

No problem. Thanks a lot for the sample, it's just what I need.

Have a nice day!
Tags
GridView
Asked by
Ken
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Ken
Top achievements
Rank 1
Share this question
or