cancel
Showing results for 
Search instead for 
Did you mean: 

how to use Scrollbar in Tray UI

0 Kudos

Hello,

I want to use scroll bar inside a tray UI Element. I tried using the scrolling mode property of tray but no scrollbar appeared.

I am trying to do this using dynamic coding.

Can someone help me in this??

Thanks and Kind Regards,

G Singh.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Following are the approaches

1) create a Tray and set the srolling mode property

IWDTray tray = view.createElement(IWDTray.class, "tray1");

tray.setScrollingMode(WDScrollingMode.BOTH);

2) Create a tray and add it as child of a Scroll container

IWDTray tray = view.createElement(IWDTray.class, "tray1");

IWDScrollContainer scrollContainer = view.createElement(IWDScrollContainer.class, "Scroll1");

scrollContainer.addChild(tray);

Regards

Ayyapparaj

0 Kudos

Hello Ayyapparaj,

Thanks for this info.

If i want to have only 5 visible rows in my tray and use a scrollbar for more rows, then what i need to do.

Using WDScrollingMode.AUTO , its webdynpro that decides when to provide scroll bar, but here i want it to come for more than 5 rows

Thanks and Kind Regards,

Gursimran Singh

Former Member
0 Kudos

Hi,

If you are speaking about tables

set the property of following property of the table

<b>visibleRowCount 5</b>

Regards

Ayyapparaj

0 Kudos

Hello Ayyapparaj,

Sorry for confusion.

But i am not talking of tables. I am saying that suppose my tray UI Elements has 10 linkToAction UI elements and i only want to show 5 and for the rest five i want the user to scroll !!

How i do this using a tray and not a table !!

Thanks and Regards,

G. Singh

Former Member
0 Kudos

Set scrolling mode to AUTO and set a fixed height for the Tray, e.g. 20ex.

Armin

Answers (1)

Answers (1)

0 Kudos

thanks for all ur inputs..

Kind Regards,

Gursimran Singh