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

HeaderRow and GridViewScrollViewer

2 Answers 70 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Xoma
Top achievements
Rank 1
Xoma asked on 19 May 2010, 04:00 PM
Hi guys,

I have a requirement where I need to have VerticalScrollBar appeared right under the column headers.
Well, I was able to archive that by changing the ControlTemplate for the GridView where I moved GridViewHeaderRow to outside of the ScrollViewer. Everything seems to work just fine. Next I wanted to have a star sized columns and that's where I am having a little problem. I need my last Column Header to use all the remaining space; however there still a space of VerticalScrollBar's width on the right. It's not a filler column; simply DataCellsPresenter inside GridViewHeaderRow does not stretching its content all the way. How do I fix this.

Attached is sample pick.

Thanks,

2 Answers, 1 is accepted

Sort by
0
Kalin Milanov
Telerik team
answered on 20 May 2010, 01:12 PM
Hello Xoma,

Setting a couple of negative margins will do the trick. Please review the sample app i am sending you and let me know if this fits your case.

Best wishes,
Kalin Milanov
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
Xoma
Top achievements
Rank 1
answered on 20 May 2010, 02:40 PM
Hello Kalin, that did. The only thing I had to changed was to set negative margin on VirtualizingPanel as I already moved PART_HeaderRow to outside of GridViewScrollViewer. Can you please elaborate what VirtualizingPanel has to do with the HeaderRow?

Thanks,

Xoma

Tags
GridView
Asked by
Xoma
Top achievements
Rank 1
Answers by
Kalin Milanov
Telerik team
Xoma
Top achievements
Rank 1
Share this question
or