ComboFilter customization

Hello all,

In a grid, I try to customize a boolean ComboFilter, for two reasons :

  • by default the comboFilter show true/false, i need a french version (vrai/faux)
  • and/or i need to have a more beautiful comboBox with icons

I tried in this snippet,
https://snippet.dhtmlx.com/wai4x3cl

but i have 2 remarks :

  1. When I click on “Vrai”, the value showed in the text box is “true”,so it’s not perfect for localization

  2. The template function of ComboFilter don’t seem html, so there is no icon showed
    <i class=’dxi dxi-checkbox-marked’ >
    Perhaps i made a mistake ?

Thx for any advice

Hello

Thank you for your report. The problem is confirmed. We’ll try to fix it in one of the future updates.

Please, try to use the following template:

template: function (row) {
    if (row.value === "") return "";
    if (row.value == true) return "<i class='dxi dxi-checkbox-marked'></i><span style='vertical-align:top'>Vrai</span>";
    if (row.value == false) return "<i class='dxi dxi dxi-checkbox-blank-outline'></i><span style='vertical-align:top'>Faux</span>";
    return "?";
}

here is the working example:
https://snippet.dhtmlx.com/51x0uvd4

OK thx. for icon it’s perfect.
For the value showed, thx to advice me when/if the issue is solved (not critical).
best regards

For the value showed, thx to advice me when/if the issue is solved (not critical).

Currently I cannot give any exact timeline, but I’ll inform you here about any progress.

We fixed your reported problem with the template value in the comboFilter in the latest dhx.Suite update (v8.1.3.).
You can check it in the following snippet:
https://snippet.dhtmlx.com/51x0uvd4
Please, download the latest available dhx.Suite build to get this fix.
Thank you for your report.