Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
fredericvillemi
Specialist
Specialist

Listbox : stay on the selected value ?

Hello,

I have a listbox containing Countries.

The user would like the listbox to have an alphabetical order but he wants to have the list stop moving when something is selected

For example : if i select Puerto Rico

Clipboard Image.png

He wants to have Puerto Rico being selected and in green but he doesn't want the listbox to move and put Puerto Rico at the top

He wants to stay in the middle of the listbox with just Puerto Rico in green.

I have tried with Full Client and it works when I only use Text ascending order.

But when on the server, it doesn't work anymore : selecting a new Country refreshes the listbox and we go back to A letter.

Is there a way to make it work on Web like in Qlikview full client ?

Thanks

4 Replies
Colin-Albert
Partner - Champion
Partner - Champion

The selected values are being moved to the top of the listbox because you have the sort order set to "Auto Ascending" and the list box height is too small to show all the values.

To stop the selected items moving to the top of the list, you will need to make the listbox tall enough to show the full list.

fredericvillemi
Specialist
Specialist
Author

Hello,

thanks for your quick reply.

No I don't have Auto Ascending .. I'm just using Text Ascending ..  it is not checked for State

I don't want to sort by state, just alphabeticaly but I want to stay where I just selected. Works in Qlikview but not in Ajax mode

Colin-Albert
Partner - Champion
Partner - Champion

Have you tried extending the height of the listbox?

Remember that the height in Ajax can differ compared to the desktop - test using web preview mode.

fredericvillemi
Specialist
Specialist
Author

In Web View it works fine, not in Ajax mode

It doesn't seem to be a problem of height : in Ajax every refresh makes the listbox starts from the 1st line