Multiple select size

QuestionsMultiple select size
Mike Olson asked 4 months ago

How do I change the multiple select box size so more than one value shows?

See attached image for Alert Staff:


image of multiple select

3 Answers
Mike Olson answered 4 months ago

Hmmm image not showing up

Mike Olson answered 4 months ago

Here is the code I have for


$col = array();
$col[“title”] = “Alert Staff”; // caption of column, can use HTML tags too
$col[“name”] = “alert”; // grid column name, same as db field or alias from sql
$col[“formatter”] = “select”;
$col[“show”] = array(“list”=>true, “add”=>true, “edit”=>true, “view”=>true, “bulkedit”=>false);
$col[“editable”] = true;
$col[“editrules”] = array(“required”=>true);
$col[“edittype”] = “select”;
$col[“editoptions”] = array(“value”=>’John:John;Sharae:Sharae;Paul:Paul;Anthony:Anthony’, “multiple” => true);
$col[“editoptions”][“size”] = 8;
$cols[] = $col;

Abu Ghufran Staff answered 4 months ago


You can set following, and adjust height with css.

$col["editoptions"]["style"] = "height:200px";
$cols[] = $col;
Abu Ghufran - Dev Team
Grid 4 PHP Framework
Your Answer

13 + 20 =

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?