Multi-select filter when load grid from Arry

QuestionsMulti-select filter when load grid from Arry
mofel asked 4 years ago

Hello,

I'm trying to make multi-select filter.
It works well when i add it in a grid load from database.

If i use an array as datas, i can make the filter but:
– If i select one value –> no problem
– if i select more than one value –> the grid show "No records to view"

Do you have any know issue about this ?

My col has the following data:

$col = array();
$col["title"] = "Fabricant";
$col["name"] = "manufacturer_name";
$col["dbname"] = "manufacturer_name";
$col["width"] = "150";

$str = $g->get_dropdown_values("select DISTINCT(`manufacturer_name`) as k, `manufacturer_name` as v from `manufacturers` ORDER BY `manufacturer_name` ASC");

$col["stype"] = "select-multiple";
$col["searchoptions"]["value"] = $str;

$col["export"] = True;
$cols[] = $col;

Thanks
Mofel

1 Answers
Abu Ghufran answered 4 years ago

Hello,

Currently array based grid does not support multi-select filter.
Apologies for inconvenience.

Your Answer

5 + 10 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?