Search

QuestionsSearch
Gustavo Lazaro asked 6 years ago

Hi. I can not filter by value "SI" or "NO". Thank you very much

$col = array();
$col["title"] = "Autorizacion";
$col["name"] = "autorizacion";
$col["editable"] = true;
$col["editrules"] = array("required"=>true);
$col["edittype"] = "select";
$col["editoptions"] = array("value"=>'S:SI;N:NO');
$col["formatter"] = "select";
$col["align"] = "center";
$col["width"] = "30";
$cols[] = $col;

1 Answers
Abu Ghufran answered 6 years ago

To have dropdown in search filter, you need to add

$col["stype"] = "select";
$col["searchoptions"] = array("value" => ":;".'S:SI;N:NO');

Please refer demos/search/autofilter.php

Your Answer

8 + 4 =

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?