Retaining Radlistbox Scrollbar position at Destination listbox after item transfer from source listbox

4 posts, 0 answers
  1. Santhosh
    Santhosh avatar
    15 posts
    Member since:
    May 2012

    Posted 04 Jun 2012 Link to this post

    Dear Telerik Team,
    I'm implemeting 2 Radlistboxes for item transfer.if i select 1 item in source listbox then transfer to Destination listbox that time the scroll bar position occupying randomly some where and recently transferred item is not able to view.but i want to view recently just transferred items at destination list box.Also if user transfer all items then scroll bar position will be on top of list box.

    Please support.

    Thanks & Regards,
    Santhosh Naik


  2. Bozhidar
    Admin
    Bozhidar avatar
    1102 posts

    Posted 06 Jun 2012 Link to this post

    Hi Santosh,

    Could you specify the version of the controls you are using. I tested the first scenario, and the ListBox automatically scrolls to the transferred item, as per your request. So the problem might be the related to your particular version.

    About the second question, to set the scroll back to the top, you could try the following function, which is attached to the OnClientLoad event of the listbox:
    function clientLoad(sender) {
        $telerik.$(".rlbTransferAllFrom").bind("click", function() {
            setTimeout(function() {
                $find("RadListBox2").get_items().getItem(0).scrollIntoView();
            }, 10);
        });
    }

    The function binds to the click event of the "TransferAllToTheRight" button and scrolls the second listbox back to the top. The same can be done for the button that transfers all items to the left.
     
    All the best,
    Bozhidar
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Santhosh
    Santhosh avatar
    15 posts
    Member since:
    May 2012

    Posted 06 Jun 2012 Link to this post

    Thank you Bozhidar.

    I am using 2011.2.915.40 telerik version.

    Could you provide me a link to download the recent version of telerik's dll file.

    -
    Santhosh Naik
  5. Bozhidar
    Admin
    Bozhidar avatar
    1102 posts

    Posted 11 Jun 2012 Link to this post

    Hi Santhosh,

    You can download a free trial of the newest version of our controls from the "Download Free Trial" link in the following page:
    http://www.telerik.com/products/aspnet-ajax.aspx 

    However, I tested the scenario with version 2011.2.915.40 and the listbox did scroll to the bottom to show the new item after a transfer. I've attached a link to a video capture to demonstrate the behavior:
    http://screencast.com/t/IYMoSMVx

    Kind regards,
    Bozhidar
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top