cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Programming

Former Member
0 Kudos

Hi,

How can we Dynamically Increase or Decrease Text Box using TextEdit UI element or Textview Ui element?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

My Query is can we dynamically Increase or Decrease size of Textview and TextEdit UI Element

EX:Suppose User "A" having 1500 characters and User "B" having 80 characters,

While Displaying the data in Textview UI Element it should dynamically Increase or Decrease size of Ui element without Scroll.

guillaume-hrc
Active Contributor
0 Kudos

Hi,

For TextEdit, you can play on cols, rows and width to adjust the size of the element.

For TextView, the default behaviour is that it adapts in width. Yet, you can set it as a "fixed" value.

Best regards,

Guillaume

Former Member
0 Kudos

Yes you can do this thing. Just bind that width property with some attribute and while filling data in that textview calculate the length of data using strlen() and based on that length set the value of that attribute which is bind with textbox in pixel.

Hope it will help you.

BR

Chandra

guillaume-hrc
Active Contributor
0 Kudos

Hi,

What do you mean by "increase" / "decrease": length of the UI control?

If yes, you can bind the width property to a context attribute for instance.

Best regards,

Guillaume

Former Member
0 Kudos

As i understand, you talk about hide or show the text_box ui.  if it is than,

  http://scn.sap.com/thread/1656054,

http://www.youtube.com/watch?v=M0tsRlSTXwU

Former Member
0 Kudos

Dear administrator  I replied more than 4 thread yesterday but i dont understand why it is still in being moderated.  It is unfair that someone can replied to those but we begginers ar not.