Skip to Content
avatar image
Former Member

Adjust size of cell depending upon textview UI element content

Hello All,

SAP has introduced a new CTable (Client table) UI element that allows to have both pagination and scroll bar. Since my requirement want to have pagination for table entries i am forced to use CTable UI element instead of conventional Table UI element.

In Table UI element, the size of row or cell was adjusted as per content of textview. But same is not possible for CTable element i.e. even if my textview has more lines to be displayed it does not show only first line of text view as shown in below image.

After hunting the properties of Ctable, i found that the the size of row depends upon the rowheight property. I can not fix the height of row because the content of textview will be different for each row.

My requirement is to either adjust the row height as per textview content as shown in below image

or want option for textview as show in below image

When click on View more then the size of that particular row is adjusted as per texview content and when click on View less then the size of that particular row is adjusted to original size of row.

Is there some alternative to achieve above requirement.


Faiz Khan

Issue_shot1.PNG (8.3 kB)
screen_shot_1.PNG (37.6 kB)
screen_shot_2.PNG (30.0 kB)
Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Feb 15, 2014 at 06:28 PM


    Try setting the wrapping property of text view and and then test again!



    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello Kiran Kumar,

      Thanks for your suggestion. I have tried the wrapping property but no use. I think its related to row property.


      Faiz Khan