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

Custom Filtering Row Example

2 Answers 88 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Szymon Wantuch
Top achievements
Rank 1
Szymon Wantuch asked on 10 Jun 2010, 01:36 PM
Hello,

I am currently trying to create custom filtering row as based on example in the documentation.
However, while the row displays nicely in designer, it never shows.

I've tracked problem to the grid's Loaded event: inside the handler when I use GetChildrenOfType<GridViewHeaderRow>() it returns nothing. VisualTreeHelper also shows children number as zero. How do I fix it?

Best Regards,
Szymon Wantuch

2 Answers, 1 is accepted

Sort by
0
Accepted
Yavor Georgiev
Telerik team
answered on 10 Jun 2010, 01:51 PM
Hi Szymon Wantuch,

 Do you mean this example? We updated that particular example from our Q1 release and it has been reworked rather extensively.

The RadGridView's Loaded event fires before the GridView's visual tree has been completely built so that's why you can't find the GridViewHeaderRow. You're better off handling the RowLoaded event and checking if the loaded row is of type GridViewHeaderRow. If so, attach the filter row. You can examine the new version of the example for additional insight.

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
Szymon Wantuch
Top achievements
Rank 1
answered on 11 Jun 2010, 09:36 AM
Hello

Thank you for your answer.
It seems I was using old example.

Best Regards,
Szymon Wantuch

Tags
GridView
Asked by
Szymon Wantuch
Top achievements
Rank 1
Answers by
Yavor Georgiev
Telerik team
Szymon Wantuch
Top achievements
Rank 1
Share this question
or