We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Overriding the Custom Filter dialog?

Thread ID:

Created:

Updated:

Platform:

Replies:

60934 May 15,2007 04:24 PM May 16,2007 07:10 PM Windows Forms 4
loading
Tags: Grouping
Jon Pope
Asked On May 15, 2007 04:24 PM

Is there a way I can intercept the user's click on "(Custom)" when filtering a column within the GridGroupingControl, then display my own dialog? It would then be an easy thing to supply my own filter criteria to the grid using RecordFilters.Add(...).

Cheers, Jon

haneefm [Syncfusion]
Replied On May 15, 2007 04:49 PM

Hi Jon,

You can handle the TableControlCurrentCellShowingDropDown event and display your own custom filter dialogbox whenever the filterbar "custom" option is selected. Please refer the attached sample for more details.

Sample : CustomFilterDialog.zip

Let me know if you face any issues when implementing the above.

Best Regards,
Haneef

Jon Pope
Replied On May 15, 2007 05:56 PM

That did the trick. However, I've noticed that after I click the "Cancel" button on the custom filter form, the main form is not responsive to the first mouse click. Only on 2nd+ mouse clicks does the form respond. Is there a way around this? It's not apparent to me where that first mouse click is being intercepted.


Cheers, Jon

haneefm [Syncfusion]
Replied On May 16, 2007 05:41 PM

Hi Jon,

Here is a link to a sample that derives the celltype and allows you to display your own dialog. Please try the sample and let me know if this helps.
GGC_FilterBar_Dlg.zip

Best regards,
Haneef

Jon Pope
Replied On May 16, 2007 07:10 PM

That did the trick. Thanks!

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;