get_dropdown_values doesn't in grid

Questionsget_dropdown_values doesn't in grid
biowan asked 9 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 9 years ago

Hello,

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 9 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

5 + 12 =

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?