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

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?



1 Reply

JJ Jisha Joy Syncfusion Team September 24, 2010 05:58 AM UTC

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


Loader.
Up arrow icon