cancel
Showing results for 
Search instead for 
Did you mean: 

ItemListBox fixed size

Former Member
0 Kudos

Dear Community,

I'd like to display an ItemListBox holding a bunch of String values on a page and add or remove elements by pushing a button.

This all works well and is documented, but after removing elements from the ItemListBox its size shrinks until only a grey line is left on the screen.

Does anyone have a glue about how to set the ItemListBox size fixed (e.g. 10 elements/rows) although the elements get removed and ListBox is "empty"?

I played around with the visibleItems, height and all other potential "that's might be it"-parameters.

Thanks for your help!

regards,

Christian

Accepted Solutions (1)

Accepted Solutions (1)

former_member185029
Active Contributor
0 Kudos

Hello Christian,

There doesnt seems to be any property to set default height of the ItemListBox.

You may have to use table incase your requirement is still the same.

Ashutosh

Former Member
0 Kudos

Hi Ashutosh,

thanks for your reply. Thought there might be some workaround for this problem.

The requirement will still be the same, but right know I can't figure out how to have a table look like an ItemListBox (one row, no navigation, no grid).

Do you have any idea?

kind regards,

Christian

former_member185029
Active Contributor
0 Kudos

Hi Christian,

You cannot make a table look like List Box.

But you can certainly make it work like one.

In the prior version of Webdynpro (2004) there was no provision of List Box.

At that time people were using Table UI as workaround.

This may not sound a good solution, but still if you want fixed size UI, you can think of table UI.

Ashutosh

Former Member
0 Kudos

Hi,

after inspecting the generated HTML code the ItemListBox creates a standard HTML table, where the listed elements are represented by <TR> tags.

I thought the generated HTML would be an <SELECT> filling the options from my Context structure.

regards,

Christian

former_member185029
Active Contributor
0 Kudos

Hi,

I am not sure whether you can change HTML tags generated through WebDynpro.

Please let me know if you are able do it.

Ashu

Former Member
0 Kudos

I'm also very interested if it possible to modify the generated HTML before it gets run on the client side.

Former Member
0 Kudos

Impossible. Only thing you can do is create your own theme and change CSS settings.

Armin

Answers (0)