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
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?
Vanya Pavlova
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
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
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!
Vanya Pavlova
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Regards,
Antti