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

Filtered event isn't raised on Clear Filter

10 Answers 87 Views
GridView
This is a migrated thread and some comments may be shown as answers.
JDB
Top achievements
Rank 1
JDB asked on 10 Jun 2009, 12:06 PM
Hi,

Is the Filtered event not raised on purpose when the Clear Filter button is clicked?

Thanks.

10 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 11 Jun 2009, 05:41 AM
Hello RVW,

I've tried to reproduce this however everything worked fine - you can find small project attached.

Can you post a bit more info how to reproduce this behavior?

All the best,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
JDB
Top achievements
Rank 1
answered on 11 Jun 2009, 06:55 AM
Hi Vlad,

I'm sorry,  a collegue of mine asked me to post this here, but I didn't test it myself to confirm, which I should have.

The event is raised properly, thanks for your time.
0
JDB
Top achievements
Rank 1
answered on 11 Jun 2009, 09:15 AM
Hi Vlad,

After some testing, we found the problem.

It seems like the Filtered event isn't raised because the Record collection doesn't reflect the clear filter:

If we have a list containing the 1, 2, 3 (like in your example), and we filter on 1. The Record collection reflects this at the breakpoint, the count = 1;
Now, if we continue running, click clear filter, the Record collection still only has 1 item!! Click clear filter again, and the Record collection counts 3 items again.

So it seems like the Filtered event is raised to soon on a Clear Filter!
0
Vlad
Telerik team
answered on 11 Jun 2009, 11:16 AM
Hello RVW,

Do you have our latest SP? I've tried this however once again the event was raised properly.

Please open a formal support ticket and send us small example where we can reproduce and debug this.

Sincerely yours,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
JDB
Top achievements
Rank 1
answered on 11 Jun 2009, 11:20 AM
THe event is indeed properly fired, but the RadGridView.Records collection doesn't reflect the changes properly.

You can use the example you posted in this topic. Filter on 1 value, the debugger stops at the breakpoint. In the immediate window check the RadGridView.Records.Count property, it will have a value of 1.

Continue debugging, click Clear Filter, debugger stops at the breakpoint. Again, check the RadGridView.Records.Count in the immediate window, it will still have the value of 1.

Continue debugging, click Clear Filter again, debugger stops at the breakpoint. Again, check RadGridView.Records.Count in the immediate window, now it will have the value of 3, which it should have after the first Clear Filter click.
0
Vlad
Telerik team
answered on 12 Jun 2009, 06:11 AM
Hello RVW,

Unfortunately you are right - fix for this will be included in our upcoming Q2 release  - end of June.

All the best,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
JDB
Top achievements
Rank 1
answered on 16 Jun 2009, 07:09 AM
Is this a bug that should be rewarded with points?
0
Hristo Deshev
Telerik team
answered on 18 Jun 2009, 08:07 AM
Hello RVW,

But of course! I have updated your Telerik points.

Kind regards,
Hristo Deshev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
JDB
Top achievements
Rank 1
answered on 08 Jul 2009, 11:59 AM
Hi Hristo/Vlad,

I just downloaded and installed the latest release (2009 Q2), and this still isn't working properly.
0
Vlad
Telerik team
answered on 09 Jul 2009, 06:31 AM
Hi RVW,

Unfortunately you are right! For some reason this fix was not included in our Q2 release however I've just tested the demo with our latest build (will be uploaded tomorrow) and everything worked fine. You can open formal support ticket and I will send you our latest binaries.

All the best,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
JDB
Top achievements
Rank 1
Answers by
Vlad
Telerik team
JDB
Top achievements
Rank 1
Hristo Deshev
Telerik team
Share this question
or