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

Content between HeaderRow and VirtualizingPanel

4 Answers 31 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Samuel
Top achievements
Rank 1
Samuel asked on 10 Jun 2010, 11:47 PM
Is it possible to insert custom content between the PART_HeaderRow and PART_GridViewVirtualizingPanel?
I want to add some read only custom "rows" that provide additional imformation on the column and that don't scroll vertically with the rest of the data.

4 Answers, 1 is accepted

Sort by
0
Yavor Georgiev
Telerik team
answered on 11 Jun 2010, 08:46 AM
Hello Samuel,

 You can check out this demo, which inserts a custom row at that precise location. You'd be most interested in the 'radGridView_RowLoaded' method in the CustomFilterRow class. Please let me know if you need additional help.

Greetings,
Yavor Georgiev
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
Samuel
Top achievements
Rank 1
answered on 11 Jun 2010, 04:52 PM
Thanks for your response.
It looks like from the demo that column reordering and resizing doesn't work with that row.

I was thinking of setting the content into the actual header.
Do you think that is a good idea?
I am just trying to figure out how to prevent the mouse click on the lower section of the header from bubbling up to the header control.
Any ideas?
0
Samuel
Top achievements
Rank 1
answered on 11 Jun 2010, 05:23 PM
MouseButtonEventArgs has a handled property. Setting it to True prevented the bubbling.
So do you see any issue with going with this approach?
0
Yavor Georgiev
Telerik team
answered on 14 Jun 2010, 08:55 AM
Hi Samuel,

 You can certainly use that approach. In fact, the previous (Q1 SP1) version of the custom filter row example placed custom filters in the cell headers themselves, but we changed it to a custom row, because it is more customizable. I'd say you can safely "hijack" the mouse events by handling the routed event, like you've done. Don't hesitate to contact us if you require additional assistance regarding the matter.

Sincerely yours,
Yavor Georgiev
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.
Tags
GridView
Asked by
Samuel
Top achievements
Rank 1
Answers by
Yavor Georgiev
Telerik team
Samuel
Top achievements
Rank 1
Share this question
or