[CLOSED] Search an item and scroll to view in MultiSelect control

Page 2 of 2 FirstFirst 12
  1. #11
    Quote Originally Posted by Fahd View Post
    If you look into my code posted earlier, you should find that I am indeed passing the container. I am pasting the code snippet here again.

    if (i < items.length)
                if (App.lstProducts.boundList.getNode(i) != 'undefined') {
                    var node = App.lstProducts.boundList.getNode(i);
                    node.scrollIntoView(conLocation);
                    var record = App.lstProducts.boundList.getRecord(node);
                    App.lstProducts.boundList.select(record, false, true);
                }
    Yes, I noticed that. But in my code I send Id of container not a container:

    node.scrollIntoView("conLocation");
    It works without exception on my machine
  2. #12
    Please note that there is a difference between your code:
    node.scrollIntoView(conLocation);
    and the code that @Baidaly suggests:
    node.scrollIntoView("conLocation");
    There is a string in the second case and I guess why it is important in this scenario.
  3. #13
    I now have this code node.scrollIntoView("conLocation"); as you suggested but it is still scrolling the entire page instead of the MultiSelect control to which the data is actually bound.
  4. #14
    Can you provide sample of your MasterPage from this post http://forums.ext.net/showthread.php...l=1#post111188 ? But remember it should be simplified but runnable: http://forums.ext.net/showthread.php?3440

    We will try to reproduce it.
    Last edited by Baidaly; Jun 15, 2013 at 1:32 AM.
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 4
    Last Post: May 09, 2012, 9:24 PM
  2. [CLOSED] By default select the first item in multiselect control
    By AnulekhaK in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Feb 28, 2012, 11:30 AM
  3. Replies: 4
    Last Post: Feb 20, 2012, 11:14 AM
  4. [CLOSED] Show scroll bars on Multiselect control
    By Shanti in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Feb 03, 2010, 6:54 AM
  5. Replies: 0
    Last Post: Apr 15, 2009, 7:49 AM

Tags for this Thread

Posting Permissions