Are there a particular set of properties/events/strategies of the UltraTextEditor to limit the number of lines and characters that a user can input?
We would like to have editor have a limit of 3 lines of text with a max of 40 characters per line. Ideally we would word-wrap at the end of 40 characters of line 1 or 2 and go to the subsequent lines but having that capability would not be absolutely necessary and from what I understand be a little hard to do).
Doing a quick perusal the properties I didn't see anything that jumped out at me and before I start messing around with doing dynamic checking of text as it is entered and looking at the line count (of the underlying .Net Textbox), I thought I would ask if anyone has tried doing this.
Would using an UltraValidator in conjunction with anUltraTextEditor be a strategy worth investigating? Are there any other Infragistics controls that could be a consideration (I looked at the FormattedTextEditor and the MaskEdit but didn't see anything that could help).
Any tips sincerely appreciated.
-David
Hi David,
There's nothing built-in to the control to do this. I beleive there is a MaxLength property, but that only deals with the entire text, not on a per-line basis.
I don't beleive UltraValidator will help you there, either.
My guess is that you will have to do this in the key events like KeyDown and manipulate the text yourself. But it probably won't be easy.