get_dropdown_values doesn't in grid

Questionsget_dropdown_values doesn't in grid
biowan asked 4 years ago

Hi Abu,

After upgrade from 1.5.0 to 1.5.2, the get_dropdown_values in grid filter doesn't work, but it work correctly in the edit dialog box.

2 Answers
Abu Ghufran answered 4 years ago


These 3 lines will make dropdown in search autofilter.

$client_lookup = $g->get_dropdown_values("select distinct client_id as k, name as v from clients");
$col["stype"] = "select";
$col["searchoptions"] = array("value" => ":;".$client_lookup);

Refer demos/search/autofilter.php for working demo.

biowan answered 4 years ago

Thanks Abu.

"searchoptions" has solved my problem 🙂
I read the code, in demo, but I didn't see this line. Sorry.

Your Answer

4 + 8 =

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 / 5. Vote count:

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

Let us improve this post!