?
Solved

Position Selected Item in Listbox to Top

Posted on 2006-04-20
3
Medium Priority
?
849 Views
Last Modified: 2009-12-16
Hello,

I have a VB.Net web page with a listbox:

<asp:ListBox id="lbxDelList" runat="server" forecolor="#000099" rows="10" Width="500px" SelectionMode="Multiple" TabIndex="1" AutoPostBack="True"></asp:ListBox>

When item 12 is selected from this Listbox (please note that I have rows set to Rows=10), I need item 12 to re-position to the top of the listbox.  What's happens in my case is that the item gets selected/hightlighted, but since it doesn't reposition, the user can't see it.

Since the listbox is SelectionMode=Multiple and I am displaying only "Rows=10" ....if the user selects item 5 and item 25,  I need the listbox to re-position showing item 5 at the top.

Thanks! msyed1
0
Comment
Question by:msyed1
1 Comment
 
LVL 23

Accepted Solution

by:
naveenkohli earned 1000 total points
ID: 16501587
Can't do it without lot of client side javascript code.
If this kind of functionality is absolutely essential then you may want to look into thirdparty solutions for this kind of UI.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question