Hi,
Is there a way to lock the number in possible characters in a field ? … ie: so user cannot type more than 10 characters in a specific input field.
You can use html property of maxlength with editoptions. e.g.
$col[“editoptions”][“maxlength”] = 10;
Sorry, it still let me type more that 10 characters …
$col = array();
$col[“title”] = “Postcodes”;
$col[“name”] = “postcode_ref”;
//$col[“width”] = “70”;
$col[“editable”] = true; // this column is not editable
$col[“align”] = “center”; // this column is not editable
$col[“search”] = true; // this column is not searchable
$col[“editoptions”][“maxlenght”] = “10”;
$col[“editrules”] = array(“required”=>true); // and is required
$cols[] = $col;
I also tried with $col[“editoptions”][“maxlenght”] = 10;