can-the-dropdown-search-1st-item-be-changed-to-show-all

Questionscan-the-dropdown-search-1st-item-be-changed-to-show-all
Terry Ulanch asked 2 days ago

I have my code working that uses the Dropdown Selector for Filtering a column in the grid.  The first item in the drop down is the \’-\’ character.  The remaining are the unique/distinct values from data data in the specific column.  All is working as required.  I was wondering if there is a way to change the \’-\’ item to \’Show All\’ ?

1 Answers
Abu answered 5 hours ago

If you don’t set it, it defaults to hyphen. To set some value, use: searchoptions[“value”] property like below:


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

 

Your Answer

3 + 0 =

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?