Hi,
I have a grid with an editable column (ed.). While the user is typing, I would like to make the text uppercase and limit no more than 20 characters. Something like that:
myGrid.attachEvent(“onEditCell”, function(stage, id, index, nValue){
if (stage === 1 && index === 0) {
myTreeGrid.editor.obj.onkeypress = function () {
return this.value.toUpperCase().substr(0, 20);
};
}
});
but unfortunately it does not work