Hello,
Was wondering if there is a way to set the cell size in the edit options menu? I have a notes section that i only want to be edited when the edit button is clicked. The only issue is that edit cell is very small and makes it awkward to use
Thanks
I found
$col["editoptions"] = array("size"=>20, "defaultValue"=>'10');
This works, but can i adjust the height?
You can override height with css,
$col["editoptions"] = array("size"=>20, "defaultValue"=>'10', "style"=>"height:30px");
Thanks! That works! Is there anyway to wrap the text so that it fits the size of the text box?
Right now with the above code it just centers inside the larger boxes height and continues to the right
Perhaps, you need to use textarea instead of textbox.
Set:
$col["edittype"] = "textarea";
$col["editoptions"] = array("rows"=>2, "cols"=>20);
Thanks! You guys are always so helpful and fast! I was trying to do both, edit the length for the textbox and then textarea height but i'm running into issues. Can i do both at the same time?
$col["edittype"]="textbox";
$col["editoptions"] = array("size"=>50,"defaultValue"=>'30');
$col["edittype"]="textarea";
$col["editoptions"] = array("rows"=>10, "cols"=>20);
You can put css for textarea and adjust height/width:
$col["edittype"]="textarea";
$col["editoptions"] = array("style"=>"width:50px;height:50px", "defaultValue"=>'30');
You cannot have both textbox and textarea for a field.