Skip to Content
0
Former Member
Apr 25, 2009 at 05:43 PM

Maximum rows in Textedit BSP elemet

39 Views

Dear All,

I have a textedit BSP element as defined below

<htmlb:textEdit id = "TEST"

text = "<%= G_COMM %>"

cols = "230"

rows = "8"

wrapping = "SOFT"

/>

so this shows a text edit box with 8 rows visible. If user enters text beyond 8 rows, a scroll bar appears and first line moves upwards. Now I want to restrict this box only to 8 rows, so that user cannot enter beyond 8 rows and no scrollbar should appear. I checked one blog, which shows how to restict maximum number of characters which can be entered in textedit box. But I want to restrict it till particular rows.

Please let me know your valuable inputs to get it done.

Thanks,

Amol