Gustavo Lazaro asked 3 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 3 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

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

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

Let us improve this post!