This is a migrated thread and some comments may be shown as answers.

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

3 Answers 147 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Santhosh
Top achievements
Rank 1
Santhosh asked on 04 Jun 2012, 06:04 AM
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


3 Answers, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 06 Jun 2012, 12:46 PM
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.
0
Santhosh
Top achievements
Rank 1
answered on 06 Jun 2012, 01:22 PM
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
0
Bozhidar
Telerik team
answered on 11 Jun 2012, 07:37 AM
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.
Tags
ListBox
Asked by
Santhosh
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Santhosh
Top achievements
Rank 1
Share this question
or