inline select not rendering

Questionsinline select not rendering
Cedric asked 6 years ago

Hello,

I am using a in select to allow user to update the store directly within the grid with this code.

$col = array();
$col[“title”] = “Store”;
$col[“name”] = “Sa_Store”;
$col[“width”] = “40”;
$col[“search”] = true;
$col[“editable”] = true;
$col[“edittype”] = “select”; // render as select
$str = $g->get_dropdown_values(“select store as k, store as v from lab_samples_locations”);
$col[“editoptions”] = array(“value”=>$str);
$col[“formatter”] = “select”; // display label, not value
$col[“stype”] = “select”; // enable dropdown search
$col[“searchoptions”] = array(“value” => “:;”.$str);

$col[“editoptions”][“dataInit”] = “function(){ setTimeout(function(){ link_select2(‘{$col[“name”]}’); },200); }”;

$cols[] = $col;

The select rendering correctly but immediately after it get very small and we can not see any choices.

Happening in IE and Chrome.

Any helps?

Thanks,

1 Answers
Cedric answered 6 years ago

fixed changing select2 version and code. Thanks

Your Answer

6 + 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?