Setting MaxLength for ntb:textColumn

6 views
Skip to first unread message

Mangesh

unread,
Aug 18, 2009, 7:36:25 AM8/18/09
to completeui
Hi,
i want to set MaxLength for ntb:textColumn. I assigned it as :
<ntb:textcolumn label="Bkg Class" xdatafld="Class" maxLength="2"
onkeypressevent="validateClassCell(eventArgs);"></ntb:textcolumn>
but it is not working. On debugging, I observed that even if I assign
as maxLength="2" above, it is not getting set to the maxLength
property of the srcElement inside eventArgs of keyPressEvent (which
is textbox). If I manually modify it and make 1 from '2147483647', it
does limit maxLength of the grid cell properly.
Is there any way I can fix this bug?

Thanks and Regards,
Mangesh Gurav
Reply all
Reply to author
Forward
0 new messages