on 02-27-2007 10:55 PM
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
Hai,
simply insert a cell editor of type caption. fix the column size .
that automatically resize the uielement.
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
Solved.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
83 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.