:: Forum >>
maxlength in cell
How do I apply a maxlength attribute to a grid cell?
gridobj.getCellTemplate(3,1).getContent("box/text").setAttribute("maxlength", "2");
Is this how?? This does not seem to work though!!
J Mansons
Sunday, June 4, 2006
The grid cell editor is not an input tag but a span with contentEditable=true. The new 2.0.1 release will allow implementing maxlength check programmatically.
Alex (ActiveWidgets)
Monday, June 5, 2006
Many thanks Alex.. for now what would you suggest as a work around?
Jack Mansons
Wednesday, June 7, 2006
Maybe attach keyboard event handler to the edited span element in onCellEditStarted event and removing it in onCellEditEnded.
Alex (ActiveWidgets)
Wednesday, June 7, 2006
This topic is archived.
Back to support forum
Forum search