FrozenColumnsSplitter modification

5 posts, 1 answers
  1. Antti
    Antti avatar
    23 posts
    Member since:
    May 2011

    Posted 28 May 2012 Link to this post

    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
  2. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 28 May 2012 Link to this post

    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 >>

  3. Antti
    Antti avatar
    23 posts
    Member since:
    May 2011

    Posted 28 May 2012 Link to this post

    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

  4. Answer
    Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 28 May 2012 Link to this post

    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 >>

  5. Antti
    Antti avatar
    23 posts
    Member since:
    May 2011

    Posted 29 May 2012 Link to this post

    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
Back to Top