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

[Solved] Custom Filter - Prepare() Not always being called

3 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.
Keith
Top achievements
Rank 1
Keith asked on 18 Aug 2011, 03:48 PM
Hello all,

I've been experimenting with column filters and custom filters in the Silverlight Radgrid view and have stumbled into a few issues that maybe someone who is more experienced can help me with.

Note; I'm using 2010.3.11.0.1040 developers edition that was given to me for attending the Ottawa Microsoft Techdays conference last year. Maybe these issues have been fixed already?

1. When using the standard filter controls, the application will crash when clicking the filter button on certain columns (However it is inconsistent). Here is the stack trace:

   at Telerik.Windows.Controls.GridView.FilteringDropDown.OnDropDownPopupOpened(Object sender, EventArgs e)
   at Telerik.Windows.Controls.PopupWrapper.OnPopupOpened(Object sender, EventArgs e)
   at MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)

2. I discovered that you can create your own customized filter and was hoping that the error would not reproduce there however it seems to as the Prepare() method is never called on the "tempermental" columns. It works fine on other columns.

Any ideas?

Thanks,
Keith Bradley


3 Answers, 1 is accepted

Sort by
0
Keith
Top achievements
Rank 1
answered on 22 Aug 2011, 02:15 PM
Still struggling with this one folks. Anyone out there have any ideas?

Thanks,

Keith
0
Rossen Hristov
Telerik team
answered on 22 Aug 2011, 05:26 PM
Hello Keith,

The fastest way to resolve this issue would be to test with our latest version 2011 Q2, since we have fixed tons of issues since 2010.

The fully functional trial versions are freely available to anyone with a Telerik account, so you can get it from there.

If the problems still occur with our latest version 2011 Q2, I would like to ask you to prepare a small dummy project and attach it here so we can debug it and see what is going on.

Thanks in advance.

Kind regards,
Ross
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Keith
Top achievements
Rank 1
answered on 22 Aug 2011, 07:10 PM
Hi Ross,

I installed the latest trail version as suggested and the problem goes away!
Thanks for the assist on this one.

Keith Bradley
Tags
GridView
Asked by
Keith
Top achievements
Rank 1
Answers by
Keith
Top achievements
Rank 1
Rossen Hristov
Telerik team
Share this question
or