How to set filter element value of select_filter

Hi,

the xml:
echo("");
echo(“ID”);
echo(“Ativo”);
echo("");
echo("");
echo("#text_filter,#select_filter");
echo(" “);
echo(”");
echo("");

the code:
myGrid.attachEvent(“onXLE”, function (grid_obj, count) {
myGrid.getFilterElement(1).value = “Sim”; // column type select_filter
myGrid.filterByAll();
});

problem:
nothing happens, but if you do the same for a text_filter already works fine.

any solution?

Unfortunately the problem cannot be reconstructed locally.
snippet.dhtmlx.com/c83c61767
Please, make sure that you’ve set the value that is equal to the option of the select filter.
If the problem still occurs for you please, provide a snippet or a complete demo, where the problem can be reconstructed.

Hi sematik,

thk you by reply.

i change the snippet for my problem

snippet.dhtmlx.com/2cea07267

do you see my problem?

Regards

onXLE event doesn’t work correctly in case of using the parse() method, as this method works in the synchronous mode.
docs.dhtmlx.com/api__dhtmlxgrid_parse.html
Please, try to call the the required code right after the parse() method in case of using the parse().
In case of using the load() method your code works well.