Multiple select size

QuestionsMultiple select size
Mike Olson asked 1 year 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 1 year ago

Hmmm image not showing up

https://imgur.com/GsrRl1z

Mike Olson answered 1 year ago

Here is the code I have for

 

//ALERT
$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 1 year ago

Hello,

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

4 + 8 =

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?