Turn off textarea resizing in add and edit form

QuestionsTurn off textarea resizing in add and edit form
Montemaggiore Sebastian asked 5 years ago

Hello community. I want to turn off textarea resizing of thats fields of type "textarea" in the edit form and also in the add form. Hpw can i do this?. Thanks.

2 Answers
Montemaggiore Sebastian answered 5 years ago

My code is:

// Indico propiedades de la columna "nombre_apellido_cliente".
$col = array();
$col["name"] = "nombre_apellido_cliente";
$col["title"] = "Cliente";
$col["edittype"] = "textarea";
$col["width"] = "250";
$col["editoptions"] = array("rows"=>1, "cols"=>60,"style"=>"resize: none");
$col["editoptions"]["onclick"] = "this.focus();this.select();";
$col["editrules"] = array("required"=>true);
$col["hidden"] = false;
$col["editable"] = true;
$cols[] = $col;

I tried "style"=>"resize: none" but nothing.

Abu Ghufran answered 5 years ago

I've tested exactly same code and it's working as expected.
http://hastebin.com/rumasexuji.php – line 58

Your Answer

2 + 3 =

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?