I have set the max text length in the underlying model and the grid does not enforce it. I have tried the following and it does not work:
function
onEdit(e) {
debugger;
if
(e.model.isNew()) {
e.container.find(
"input[Id='strSubFundCode']"
).attr(
'readonly'
,
false
);
e.container.find(
"input[Id='strSubFundCode']"
).attr(
'disabled'
,
false
);
}
else
{
e.container.find(
"input[Id='strSubFundCode']"
).attr(
'readonly'
,
true
);
e.container.find(
"input[Id='strSubFundCode']"
).attr(
'disabled'
,
true
);
e.container.find(
"input[Id=strSubFundCode]"
).attr(
"maxlength"
, 7);
}
}
Any suggestions would be welcome.
Thanks