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

FrozenColumnsSplitter modification

4 Answers 74 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Antti
Top achievements
Rank 1
Antti asked on 28 May 2012, 11:27 AM
Hi,

I would like to either  show FrozenColumnsSplitter in empty rows (for example if grid only has one row, the space between the row and footer doesn't get splitter) or remove it from footer. Is either of these possible?

I have problems changing the appearance of the FrozenColumnsSplitter. If I add implicit style for it, it still doesn't change. Is there some place that the style should be defined in?

Regards,
Antti

4 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 28 May 2012, 12:03 PM
Hi Antti,

 


The FrozenColumnsSplitter is a part incorporated in each type of row in RadGridView - GridViewRow, GridViewFooterRow etc. If you want to remove it from GridViewFooterRow you should predefine its template using Blend and delete it manually. I have just tried to define an implicit style targeted at FrozenColumnsSplitter, however everything works fine by my side. I am attaching you the project I used for testing. Will you please take a look at the attachment and let me know how it differs from yours?  



Regards,
Vanya Pavlova
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Antti
Top achievements
Rank 1
answered on 28 May 2012, 12:32 PM
Hi,

Thank you for quick reply and code. However, I still cannot get my code working.

The approach you proposed was exactly the one that I initially tried. It's hard to say what differs in my project as we have multiple themes created for GridView and lots of other styles. Anyway, if I could remove the freeze splitter from footer, I wouldn't need to style it.

I cannot find any part in GridViewFooter that would allow me to remove freeze splitter. How can I recognize it?

Regards,
Antti

0
Accepted
Vanya Pavlova
Telerik team
answered on 28 May 2012, 01:26 PM
Hi Antti,

 

Please let me try to explain in details what is the case here. If you take a look at the default template of any type of row in RadGridView (GridViewRow, GridViewFooterRow etc.) you will see an element named DataCellsPresenter, which is responsible for displaying all kind of cells in RadGridView. Within its template you may see the incorporated part FrozenColumnSplitter. So in order to remove it only in GridViewFooterRow you should predefine the template of GridViewFooterRow and the template of DataCellsPresenter which is incorporated in it. I have updated the previous project which demonstrates how this can be achieved.  Please take a look at the attachment and let me know how this works for you!  



Kind regards,
Vanya Pavlova
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Antti
Top achievements
Rank 1
answered on 29 May 2012, 06:21 AM
Thank you for the answer. That should be all I need to make the needed reconfigurations. The key was that the FrozenColumnsSplitter was 'hidden' inside DataCellsPresenter.

Regards,
Antti
Tags
GridView
Asked by
Antti
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Antti
Top achievements
Rank 1
Share this question
or