in my snippet, i don’t understand why the maxWidth on the column comment change the size of the column (i just want to avoid more that 80 cars in the column, and it seem doing it) https://snippet.dhtmlx.com/eo9dajfj
what is best way to prevent oversize ?
in addition, is there a way to make carriage return in textarea (so having many lines)
→ ok, found it : shift Enter
Sorry, I seem don’t get the issue.
maxWidth property allows to define the maximum allowed width for the column in pixels.
so, it is just what is needed for you - prevent oversize.
Could you please, clarify your issue?
1. in addition, is there a way to make carriage return in textarea (so having many lines)
→ ok, found it : shift Enter
Right. Also, you can use \n in your cell value to define a line break.
ok, I see. maxWidth property defines the maximum width of a grid column in pixels. This property is not related to the content of a cell.
There is no maxLength property for the grid cell.
You may prevent the user to input more than ‘n’ symbols using the AfterEditStart event. Something like: https://snippet.dhtmlx.com/ss5rxx2i