dhtmlxValidation

Hi,

I’m using custom rule dhtmlxValidation for my grid cells like in the samples:
dhtmlxValidation.isMax4 = function(a)
{
return a.length <= 4;
}
how can i force the user not to press more then 4 numbers?
using the isMax4 validation only markes the cell as unvalid, but still the user can press more then 4 numbers. i want to be able to force the cell not to show me more then 4 numbers like in How so basically my question is how can i set maxlength for a cell?
And also the same problem when i want the cell to be only numbers or only letters.

Please advice,

Thanks.

It can be done with custom eXcell type which will catch what user is typing.