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 :
-
When I click on “Vrai”, the value showed in the text box is “true”,so it’s not perfect for localization
-
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
sematik
#2
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.