filter not show "_" character

Good morning,

i'm using an sfdatagrid to visualize a datatable records. in the column "Tipo" a lot of them have the character "_" , for example 60x15_r1

Image_8879_1732089808787


When i try to use the filter, the available choices show me the string without "_" .  It seems to me that this happen when the "_" follow a number.

Image_5292_1732089764603


Below a different example where there is another behaviour: the first "_" is removed while the second one remain

Image_1015_1732090074968


Could please explain me why this happen and if it is possible to avoid it?

thank You in advance

Best regards

Marco Del Frate



1 Reply

SG Santhosh Govindasamy Syncfusion Team November 21, 2024 07:05 AM UTC

Hi marco del frate,

Thank you for reaching out.


Based on the information and image you provided, we understand that you would like to display values with underscores in the checkboxes of the filter control. We would like to inform you that, by default, the checkbox does not display the first underscore when the checkbox contains values with underscores. This is the standard behavior of the checkbox.


To meet your requirement, please refer to the knowledge base (KB) article mentioned below. In this KB, the style of the CheckBoxFilterControl has been overridden.

How to display values with underscore in check boxes of the filter control?

Please let us know if you need any further assistance. We will be happy to help.

Regards,
Santhosh.G


Loader.
Up arrow icon