Grid - Column Maxlength

Hello,

I am using Dhtmlx PRO 2.5 version.
I need to set a maxlength for each individual column.
I want to have the exact same behaviour as HTML “maxlength” property.

What do you recommend?
Thanks in advance

You can use validation logic
dhtmlx.com/docs/products/dht … _rule.html
or custom one, something like

[code]mygrid.attachEvent(“onEditCell”,function(stage, rowId, cellIndex) {
if (stage == 1 && cellIndex == INDEX) {
/here INDEX is column index/
mygrid.editor.obj.onkeypress = function() {
return mygrid.editor.obj.value.length < 10;
}
}

return true

})[/code]