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.

How to customize filter-bar for boolean columns by replacing False/True with Yes/No

Thread ID:

Created:

Updated:

Platform:

Replies:

96592 Sep 21,2010 03:09 PM Sep 24,2010 01:58 AM Windows Forms 1
loading
Tags: Grouping
Radek Pecher
Asked On September 21, 2010 03:09 PM

I tried to change the default "False" and "True" strings, always appearing in the filter-bar drop-down list of boolean columns (containing check-boxes), through CheckBoxOptions, but unsuccessfully. For example:

ggc->Table->Appearance->AnyCell->CheckBoxOptions->CheckedValue = "Yes";
or
ggc->TableDescriptor->Appearance->AnyCell->CheckBoxOptions->UncheckedValue = "No";

Any idea how to achieve this through the GGC properties, please?



Jisha Joy [Syncfusion]
Replied On September 24, 2010 01:58 AM

Hi Radek,

You can do this by deriving the GridTableFilterBarCellModel class and override FillWithChoices which is the method that fills the dropdown. Please refer the forum thread below for more information on this.

http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=25998

Also, check the following KB article for ore details.

http://www.syncfusion.com/support/kb/666/

Sample mentioned in the KB can be obtained from the following link:

http://help.syncfusion.com/samples/kb/grid.windows/GGCRemoveCustom/Custom.zip

Please let me know if this helps.

Regards,
Jisha


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.

;