Skip to Content
0
Former Member
Nov 24, 2008 at 08:50 AM

how to fix textEdit UI rows

28 Views

Dear all,

we have a requirement where we have a textedit UI and we want it to accept only 4 rows from the user.

But there is no attribute to enforce that.

1. i have used rows property of textedit (set it to 4) but after 4th line a scrollbar comes and let user enter more lines.

2. binded the context with string type local dic attribute and specified its length to 100 . so if each row contains 25 chars, the total lines should be 4. but problem is if user enters 1 char per line , it allows 100 lines to be added..

kinldy let me know any work around