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

Why does the scroll bar extend into the header area?

2 Answers 10 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Rob Ainscough
Top achievements
Rank 1
Rob Ainscough asked on 12 Oct 2012, 08:20 PM
Is there anything that can be done to prevent this?

Just doesn't make a lot of sense to me ... the region being scrolled isn't part of the header so why does the scrollbar extend into the header area?

Rob

2 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 15 Oct 2012, 01:25 PM
Hi Rob,

You could predefine the template of the RadGridView and set negative Margin for the PART_HeaderRow. This will change the start position for the ScrollViewer. 

For example:

<telerik:GridViewScrollViewer.HeaderRow>
    <telerik:GridViewHeaderRow x:Name="PART_HeaderRow" IsTabStop="False" IndentLevel="{TemplateBinding GroupCount}" Margin="0,0,-15,0">
    <telerik:StyleManager.Theme>
        <telerik:Office_BlackTheme/>
    </telerik:StyleManager.Theme>
    </telerik:GridViewHeaderRow>
</telerik:GridViewScrollViewer.HeaderRow>
  Greetings,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Rob Ainscough
Top achievements
Rank 1
answered on 16 Oct 2012, 05:05 PM
Hi Didie,

GridViewScrollViewer is not available 0912 build, since that build had/has problems, I'm not using it.

I'm unable to find a more recent build and the automatic download flashes on for 2 seconds and I keep missing it.  Even you external Update application (which I downloaded and installed) seems to only get build 0912.

But I'm also reading folks are still having problems with the most recent build (whatever that might be).

It would be nice to have a simple "Updates" link/tab/menu item (or whatever) with a list of download links on your web site (always present not hidden away in the depths of your web site) ... but this apparently isn't something deemed important.

But to be clear (I really didn't want to add more code to fix an obvious design problem), the scrollbar should NOT extended into the header, it doesn't scroll the window or the header, it scrolls only the rows so it should NOT extend into the header.  So what I'm looking for is a code fix, not a "possible" work-around that would involve me adding A LOT of code all over my application to compensate for what is clearly a design flaw in how the grid scrollbar is being presented.

Rob.
Tags
GridView
Asked by
Rob Ainscough
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Rob Ainscough
Top achievements
Rank 1
Share this question
or