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

How do you prevent the header row from scrolling

6 Answers 1166 Views
GridView
This is a migrated thread and some comments may be shown as answers.
shawn slatunas
Top achievements
Rank 1
shawn slatunas asked on 02 Apr 2010, 05:40 PM
I have searched the forums and haven't seen anything that explains this.  In the WPF RadGridView Scrolling example the grid has a static header row.  I tried this example, but my header row scrolls.  Any guidance would be appreciated.

Thanks

6 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 05 Apr 2010, 01:17 PM
Hi shawn slatunas,

We are somewhat perplexed from you description. In our example the header row is scrolled right and left like the rest of the grid and this is the way it is supposed to be.

The header row is supposed to scroll horizontally with everything else in sync. Each header cell will always stay on top of its column. We really can't understand what do you mean by the term "static header row".

In case you are talking about the header cells resizing when you scroll down -- this is caused because the column widths are dynamic. When you are scrolling down and you reach a cell with a lot of content, then the respective column will automatically grow/shrink in width in order to accommodate the entire cell content. Maybe you are confusing this with scrolling?

Anyway, you can easily set fixed widths for each column and then this will not happen anymore.

In case you are talking about something entirely different, please elaborate. What do you mean with the term "static header row". Can you explain this. Even better, you can open a separate support ticket. and in case you have a sample project, send it to us in the support ticket. Then explain what is wrong and how do you expect it to be.

Thanks in advance. We are looking forward to hearing from you.

Regards,
Ross
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
0
shawn slatunas
Top achievements
Rank 1
answered on 05 Apr 2010, 06:39 PM
I am sorry for the confusion.  I meant vertical scrolling, not the horizontal scrolling.  The example I referred to the header row doesn't scroll vertically.  I am looking for this in my application.  I however, can't find an example of how to accomplish this.
0
Rossen Hristov
Telerik team
answered on 06 Apr 2010, 09:26 AM
Hi shawn slatunas,

Probably you have placed your grid inside an external ScrollViewer. That is why the entire grid is scrolled up and down.

If you rely on the grid's vertical scroller -- then the header row will always stay visible.

I hope this helps.

Best wishes,
Ross
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
0
Shreya
Top achievements
Rank 1
answered on 10 Nov 2014, 04:20 PM
Hi Rossen,
I have some requirements in which I have had to put my grid inside a external scrollviewer. Now when I am scrolling the header is also lost. Is there any way in which I can keep the header fixed inside the scrollviewer. thanks in Advance.
0
Manikandan
Top achievements
Rank 1
answered on 01 Feb 2019, 07:49 AM

Hi Rossen ,

I am developing my window with radgridview. But grid headers also scrolling while scrollbar scrolling. I need a proper solution for how to prevent the header to scroll?

 

 

0
Dinko | Tech Support Engineer
Telerik team
answered on 05 Feb 2019, 02:10 PM
Hi Manikandan,

Thank you for the provided image. 

When the RadGridView has scrolled vertically, the headers of the column will not move and will always be at the top. This is the default behavior. Did you mean to say in your post that the RadGridView is scrolled horizontally? If this is the case, the RadGridView provide functionality to freeze its columns. You can read more about this feature in the Frozen Columns help article. If this is not the case, can you confirm that when you scroll the content of the RadGridView the header row disappears from the viewport? If yes, which version of our controls are you referencing in your project and if you are using NoXAML binaries which theme is applied?

Regards,
Dinko
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
GridView
Asked by
shawn slatunas
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
shawn slatunas
Top achievements
Rank 1
Shreya
Top achievements
Rank 1
Manikandan
Top achievements
Rank 1
Dinko | Tech Support Engineer
Telerik team
Share this question
or