cancel
Showing results for 
Search instead for 
Did you mean: 

How to add TextEdit or scrollbar TextView in Table Cell?

Former Member
0 Kudos

Hi, SDN Fellows.

I want to add a table cell in a table column, said "Description" with long paragraph text.

I thought I can add read-only TextEdit component to the table cell, but I don't find it from Table Cell Editor? So I wonder I can add the Text View with scrollbar on it.

The main purpose is to make the long paragraph text in scrollable area.

Thanks for advices.

Kent

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hai,

simply insert a cell editor of type caption. fix the column size .

that automatically resize the uielement.

Regards,

Former Member
0 Kudos

Hi, Naga. Insert "Caption" and put set "Resizable" and "Wrapping" to true really behave the same like "TextView".

Thanks a lot.

I rewarded some points.

Former Member
0 Kudos

Hi Kent

Alternatively ( More development involved though ), you can have a LinkToAction UI element, or a Button UI element in the column of your long text. In onAction method of the UI element, display the desired long text in a pop up window, in a TextEdit UI element. You need to create a window and embed a view having the TextEdit UI element. You can set the text to be displayed on the on Action property to a context attribute in the componenet controller. Map a context attribute of the view embedded in the popup window to the context attribute of the component controller.

Reards

kkk

Answers (2)

Answers (2)

Former Member
0 Kudos

Solved.

Former Member
0 Kudos

Hi Kent,

For the Table cell editor only basic UI controls can be added. It doesn't supprt container controls like scroll container or transparent container. So adding the scroll container n then inserting a text view element into it is not possible in case of table cells.

One of the solution can be....just add a text view control as the cell editor n sets the following properties :

For text view: Set 'Wrapping' to true.

For table column: Set 'Resizable' to true.

Hope it serves your purpose.

Former Member
0 Kudos

Hi, Prasanna.

In fact, I set the "Wrapping" and "Resizable" to true currently. But still, if the "Description" paragraph is too large. The Table Cell element will be resized to the size the take up too much space. That was the reason that I try to insert a scrollbar in the table cell.

Worst case, I just have to stay with what it is.

Thanks a lot.

I rewarded some points.