Only scrollbar under non-frozen columns

2 posts, 0 answers
  1. Mads
    Mads avatar
    25 posts
    Member since:
    Nov 2014

    Posted 06 Oct 2015 Link to this post

    I have set 

    FrozenColumnCount="8"

    Is it then possible to only have the horizontal scroll-bar be visible under the other columns and not the frozen columsn?

    Right now the scroll-bar extends from the start of the grid. But would like it to be visible under column 9 and forth

     

  2. Petya
    Admin
    Petya avatar
    975 posts

    Posted 09 Oct 2015 Link to this post

    Hi Mads,

    There is no out-of-the-box option that would allow to achieve this behaviour.

    What I'd suggest is extracting and modifying the template of the GridViewScrollViewer. In it, there is a ScrollBar control for the horizontal scrollbar and you can set its Width based on the desired remaining space. You can take a look at the template structure of the control here and I'd also suggest going through the implicit styling approach documentation.

    I hope this is useful.

    Regards,
    Petya
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top