Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

How do I scroll a list box to a specific item via code

Posted on 2007-10-10
30
Medium Priority
?
436 Views
Last Modified: 2008-02-01
I have an asp.net page which contains a listbox with 100 or so items.  The page also contains a number of other controls.  When the user clicks on another item on the page, I want to automatically scroll the listbox to a certain item in the list.  Using the code MyListBox.SelectedItem = 25 will select the item but does not scroll to it.  I saw some references to using SendMessage to the control but I don't know how to get the handle for the control.  Does anyone have thoughts on how to accomplish the scroll?
0
Comment
Question by:aspwv
  • 16
  • 14
30 Comments
 
LVL 21

Expert Comment

by:surajguptha
ID: 20052242
Are you using .net 1.1 and 2.0 ??
0
 

Author Comment

by:aspwv
ID: 20052269
Sorry...just 2.0
0
 
LVL 21

Expert Comment

by:surajguptha
ID: 20052286
I used 2.0. I dragged a listbox into the page, addded 20 items, set the ListBox1.SelectedIndex = 7;
When the page loaded, the 7th items was selected and displayed. the scroll bar was automatically adjusted.

Am i missing something?
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

Author Comment

by:aspwv
ID: 20056700
One of us is I guess...I select item 19 and it is highlighted but I need to scroll down to see it.
0
 
LVL 21

Expert Comment

by:surajguptha
ID: 20056719
It is automatically scrolled for me.. Thats why i am confused why it happens for u
0
 

Author Comment

by:aspwv
ID: 20056933
I don't know if it matters but I add items at run time.  The control is not bound to a db though...
0
 
LVL 21

Expert Comment

by:surajguptha
ID: 20057199
Case 1: At Run time i add these 20 items on a button click and set the index. It automatically scrolls to the selected value

        System.Collections.Generic.List<string> a = new System.Collections.Generic.List<string>();
        a.Add("1");
        a.Add("2");
        a.Add("3");
        a.Add("4");
        a.Add("5");
        a.Add("6");
        a.Add("7");
        a.Add("8");
        a.Add("9");
        a.Add("12");
        a.Add("13");
        a.Add("14");
        a.Add("15");
       
        a.Add("16");
        a.Add("17");
        a.Add("19");
        a.Add("231");
        a.Add("22");
        a.Add("3455");
        a.Add("45646");

        ListBox1.DataSource = a;
        ListBox1.DataBind();
        ListBox1.SelectedIndex = 10;

0
 
LVL 21

Expert Comment

by:surajguptha
ID: 20057204
Case 2: I add 10 values at design time and add 5 values at run time and then set the selected index. Yet it scrolls it the selected value automatically

        ListBox1.Items.Add("Crap");
        ListBox1.Items.Add("Crap2");
        ListBox1.Items.Add("Crap3");
        ListBox1.Items.Add("Crap4");
        ListBox1.SelectedIndex = 10;
0
 

Author Comment

by:aspwv
ID: 20057670
My code is below...not much differrent from you...Item 17 is highlighted but never scrolls to that location.  there are about 120 items in my list if that matters.  I notice that I am using a different ListItem constructor.  I will see if that makes any difference, though I really need my style of ListItem.

Any other ideas?


         MyListBox.Items.Clear();
       
        foreach (DataRow DR in DS.Tables[0].Rows)
        {
            string ID = DR[0].ToString();
            string Desc = DR[1].ToString();

            ListItem LI = new ListItem(ID+" " +Desc, ID);

            if (!MyListBox.Items.Contains(LI))
            {
                MyListBox.Items.Add(LI);
            }
        }

        MyListBox.SelectedIndex = 17;
0
 
LVL 21

Expert Comment

by:surajguptha
ID: 20058111
Ok if nothing works out this is sure to work. On load of your form call this javascript
document.getElementById('ListBox1').value = document.getElementById('ListBox1').value;
0
 

Author Comment

by:aspwv
ID: 20059155
When I ran the code you suggested, I get an error saying document.getElementById... is null or not an obect.  I looked around some and adapted it to look like the code below I get this error:
Wrong number of arguments or invald property assignment

window.onload = function()
{
    document.getElementById('<%=UnSelListBox.ClientID %>') =     document.getElementById('<%=UnSelListBox.ClientID %>')
}


I am not super familiar with javascript so am I missing it?
0
 
LVL 21

Expert Comment

by:surajguptha
ID: 20059167
document.getElementById('ListBox1').value = document.getElementById('ListBox1').value;

Replace ListBox1 with the name of the Listbox which i think is UnSelListBox ??
0
 

Author Comment

by:aspwv
ID: 20059263
I did...
0
 
LVL 21

Expert Comment

by:surajguptha
ID: 20059303
You tried this??
window.onload = function()
{
document.getElementById('UnSelListBox').value = document.getElementById('UnSelListBox').value;
}

0
 

Author Comment

by:aspwv
ID: 20059317
I just discovered the issue...I have mine set to allow multiple select.  Even though I am only asking it to select one item, it apparently will not if set to allow multiple select?
0
 
LVL 21

Expert Comment

by:surajguptha
ID: 20059325
Well if you have enabled multiple select on what basis would you want focus on ?
I think i wouldnt be worrying about this if it had multiple select :)
0
 

Author Comment

by:aspwv
ID: 20059351
The user enters some text, like a last name in a text box.  Upon doing so, I want to scroll the listbox to the first 'Smith' (e.g.) in the list.  I only want to scroll to there so the user doesn't have to wade through the other names before Smith.  After that, I want them to select as many items as they want.  Make sense?
0
 
LVL 21

Expert Comment

by:surajguptha
ID: 20059403
You tried this??
window.onload = function()
{
document.getElementById('UnSelListBox').value = document.getElementById('UnSelListBox').value;
}
0
 

Author Comment

by:aspwv
ID: 20059422
Yes
0
 
LVL 21

Expert Comment

by:surajguptha
ID: 20059433
And it threw the same error? saying document.getElementById... is null or not an obect. ???
0
 
LVL 21

Expert Comment

by:surajguptha
ID: 20059462
Add this HTML button to ur aspx code and check if on click of the button, it sets the focus

<input type="button" name="Demo" onclick="document.getElementById('UnSelListBox').value = document.getElementById('UnSelListBox').value;"/>
0
 

Author Comment

by:aspwv
ID: 20059482
Correct...and my page looks like this:

<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Test.aspx.cs" Inherits="Test" Title="Untitled Page" %>

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<script type="text/javascript">
window.onload = function()
{
document.getElementById('UnSelListBox').value = document.getElementById('UnSelListBox').value;
}
</script>
...
0
 
LVL 21

Expert Comment

by:surajguptha
ID: 20059497
I think On window.onload the control is not even rendered. Thats why it shows the error. can you try what i have suggested? Add the HTML button and check it happens manually?
0
 

Author Comment

by:aspwv
ID: 20059565
Strange...The control is rendered and I see the button.  When I click on it and get the document.getElementById... is null or not an obect error
0
 
LVL 21

Expert Comment

by:surajguptha
ID: 20059573
can you paste me the HTML generated by your listbox??
0
 

Author Comment

by:aspwv
ID: 20059598
I thought I could maybe pull off a deal when I set it to single select, set the selected index and then set it to multiple select...that doesn't work...so I thought I would set to single select, scroll to place and  allow the user to click a button saying "Use multiple select".  As soon as I click, I set it to multiple select and it scrolls back to item 1, even though item n is selected...
0
 
LVL 21

Expert Comment

by:surajguptha
ID: 20059665
>> set the selected index and then set it to multiple select...that doesn't work...
>> As soon as I click, I set it to multiple select and it scrolls back to item 1,

The moment Multi select is choosen the auto select option  would be disabled even if only one element is selected
0
 

Author Comment

by:aspwv
ID: 20059743


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head><title>
      Untitled Page
</title></head>
<body>
    <form name="aspnetForm" method="post" action="/Experimental/ReportCreator2/(F(2tidOf5TIpwrMP6Oydic3_dmlDoytRWM5zY_dTzueO63tjxZXWRUrJvF4RCw3cG6UiH7HxpdKJQkHgt4zivFiQ2))/Junk.aspx" id="aspnetForm">
<div>
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__LASTFOCUS" id="__LASTFOCUS" value="" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMTAwNjY4MjM4NQ9kFgJmD2QWAgIDD2QWAgIBD2QWAgIDD2QWAmYPZBYEAgEPEGRkFgFmZAIDDxBkEBXaAUkxwqDCoMKgwqDCoMKgwqDCoMKgU3VtbWEgSGVhbHRoIFN5c3RlbS9Ba3JvbiBDaXR5IGFuZCBTdC4gVGhvbWFzIEhvc3BpdGFsLzLCoMKgwqDCoMKgwqDCoMKgwqBBa3J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wMxNjgDMTY5AzE3MAMxNzEDMTcyAzE3MwMxNzQDMTc1AzE3NgMxNzcDMTc4AzE4MAMxODEDMTgyAzE4MwMxODUDMTg2AzE4NwMxODgDMTg5AzE5MAMxOTEDMTkyAzE5MwMxOTQDMTk1AzE5NwMxOTgDMTk5AzIwMAMyMDEDMjAyAzIwNAMyMDUDMjA2AzIwNwMyMDkDMjEwAzIxOQMyMjgDMjI5AzIzNgMyMzcDMjQyAzI1MAMyNTEDMjUyAzI1MwMyNTQDMjU2AzI2MQMyNjIDMjYzAzI2NAMyNjUDMjcyAzI3MwMyNzUDMjc3AzI4MQMyODMDMzAwAzMwMgMzNDQDMzUxAzM1MgMzNTMDNDA4AzQyORQrA9oBZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dkZBgBBR5fX0NvbnRyb2xzUmVxdWlyZVBvc3RCYWNrS2V5X18WAQUmY3RsMDAkQ29udGVudFBsYWNlSG9sZGVyMSRVblNlbExpc3RCb3iu9EYPivi9tWsSl/ZWAAofmm46BA==" />
</div>

<script type="text/javascript">
<!--
var theForm = document.forms['aspnetForm'];
if (!theForm) {
    theForm = document.aspnetForm;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
// -->
</script>


<script src="/Experimental/ReportCreator2/WebResource.axd?d=0Ci8fMrWTb_Y_M2LK8QLJg2&amp;t=633197386306361250" type="text/javascript"></script>


<script src="/Experimental/ReportCreator2/ScriptResource.axd?d=iPR1R0db7RonxQkYBS7G7sre4FpOrA5X_7JRKZxErBNo9Y1QL8mEJ9uZJ4vv5o-iJDazbByKpF4vyEcLMn2boZbbNqN3NBunOsTcfl3E-B01&amp;t=633275223996007017" type="text/javascript"></script>
<script src="/Experimental/ReportCreator2/ScriptResource.axd?d=iPR1R0db7RonxQkYBS7G7sre4FpOrA5X_7JRKZxErBNo9Y1QL8mEJ9uZJ4vv5o-iJDazbByKpF4vyEcLMn2boY7TmNLdG56sfo0MKVceznsi-rV__StypttUTq_EGfsy0&amp;t=633275223996007017" type="text/javascript"></script>
    <div>
       
<script src="rememberScrollPosition.js" type="text/javascript"></script>
<script type="text/javascript">
    window.onload = function()
    {
        ("UnSelListBox").rememberScrollPosition();
       
    }
</script>

    <script type="text/javascript">
//<![CDATA[
Sys.WebForms.PageRequestManager._initialize('ctl00$ContentPlaceHolder1$ScriptManager1', document.getElementById('aspnetForm'));
Sys.WebForms.PageRequestManager.getInstance()._updateControls(['tctl00$ContentPlaceHolder1$UpdatePanel1'], [], [], 90);
//]]>
</script>

    <div id="ctl00_ContentPlaceHolder1_UpdatePanel1">
      
            <select name="ctl00$ContentPlaceHolder1$DimSelectDropDownList" onchange="javascript:setTimeout('__doPostBack(\'ctl00$ContentPlaceHolder1$DimSelectDropDownList\',\'\')', 0)" id="ctl00_ContentPlaceHolder1_DimSelectDropDownList">
            <option selected="selected" value="`id`~hospital~!dim_hospitals!">Hospitals</option>
            <option value="`diagnosis`~[icd9 Description]~!dim_Diagnosis!">Diagnosis</option>
            <option value="`[drg code]`~[drg Description]~!dim_DRG!">DRG</option>

      </select>&nbsp;<br />
            &nbsp;<select size="4" name="ctl00$ContentPlaceHolder1$UnSelListBox" multiple="multiple" id="ctl00_ContentPlaceHolder1_UnSelListBox" style="height:136px;width:502px;">
            <option value="1">1&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Item1</option>
            <option value="2">2&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Item2</option>
            <option value="3">3&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Item3</option>
            <option value="5">5&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Item4</option>
            <option value="6">6&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Item5</option>
            <option value="7">7&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Item6</option>
            <option value="8">8&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Item7</option>
            <option value="9">9&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Item8</option>
            <option value="10">10&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Item9</option>
            <option value="11">11&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Item10</option>
            <option value="12">12&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Item11</option>
            <option value="13">13&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Item12</option>
            <option value="14">14&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Item13</option>
      </select>
       
</div>
    <br />
    &nbsp;
<input type="button" name="Demo" onclick="document.getElementById('UnSelListBox').value = document.getElementById('UnSelListBox').value;"/>

    </div>
   
<div>

      <input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEW3wEC38ir2wYCqoDe4AICkqqCwAsC7ayJ7QQC5JyMow4CrtXQrAQCr9XQrAQCrNXQrAQCqtXQrAQCq9XQrAQCqNXQrAQCudXQrAQCttXQrAQCrtWQrwQCrtWcrwQCrtWYrwQCrtWkrwQCrtWgrwQCrtWsrwQCrtWorwQCrtW0rwQCrtXwrAQCrtX8rAQCr9WQrwQCr9WcrwQCr9WYrwQCr9Wkrw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iMCgLw3vjSAgKIlNf4AwLlrbGNDQL+upOmBwLb0/y4AQKRhrjmBgLqn5p7Ase0hIwKAvDexNICAs33pucMAoiU0/gDAuWtvY0NAv66n6YHAtvT+LgBArTp2s0MApGGxOYGAse0gIwKAvDewNICAs33oucMAomU9/gDAuKt0Y0NAv+6s6YHArXp/s0MAo6G2OYGAuufunsCxLSkjAoCyvfG5wwCiZTz+AMCyvfC5wwC8d7s0gICyvfO5wwC65/OewLEtKiMCgL/usOmBwKJlIP7AwLire2NDQL/us+mBwLY06i7AQK16YrMDALrn9Z7AuKt6Y0NAv+6y6YHAtjTtLsBArXplswMAo6G8OYGAv+616YHAtjTsLsBAo6G/OYGAsS0uIwKAuKtsY0NAtjT/LgBAoaU9/gDAvy6s6YHArLpjswMAuOt7Y0NAvy6z6YHAtnTqLsBAu/e5NICAsj3zucMyWGFi5CsiRYXAEcu7EjaFivrogo=" />
</div>

<script type="text/javascript">
<!--
Sys.Application.initialize();
// -->
</script>
</form>
</body>
</html>
0
 
LVL 21

Accepted Solution

by:
surajguptha earned 2000 total points
ID: 20059772
Notice the line ;<select size="4" name="ctl00$ContentPlaceHolder1$UnSelListBox" multiple="multiple" id="ctl00_ContentPlaceHolder1_UnSelListBox" style="height:136px;width:502px;">

I think the name of ur UnSelListBox is ctl00$ContentPlaceHolder1$UnSelListBox


so try <input type="button" name="Demo" onclick="document.getElementById('ctl00$ContentPlaceHolder1$UnSelListBox').value = document.getElementById('ctl00$ContentPlaceHolder1$UnSelListBox').value;"/>
0
 

Author Comment

by:aspwv
ID: 20059829
Hey!  That scrolls it.  In design mode, my Listbox is UnSelListBox but I noticed that it is rendered with the full markup.  That's why I tried my version which was like this:
document.getElementById('<%=UnSelListBox.ClientID %>')
which handles the markup name...I missed the .value at the end though I just noticed.  I now have my button look like this:
<input type="button" name="Demo" onclick="document.getElementById('<%=UnSelListBox.ClientID %>').value = document.getElementById('<%=UnSelListBox.ClientID %>').value;"/>

 and this works fine.  I can work with this...thanks a ton for your help!!!
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses
Course of the Month13 days, 15 hours left to enroll

581 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