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

How to select transfered item

1 Answer 52 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Royal
Top achievements
Rank 1
Royal asked on 01 Dec 2010, 07:26 PM

I have two listboxes, I would like to take the latest item moved to the second box and have that item programmatically selected. I have tried using set_selected(true) with no luck.

Any ideas?

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 02 Dec 2010, 06:25 AM
Hello Royal,


Have you tried the following code?

Client side code:
<script type="text/javascript">
    function OnClientTransferred(sender, args) {
        args.get_item().set_selected(true);
    }
</script>

Attach the OnClientTransferred event to RadListBox.


-Shinu.
Tags
ListBox
Asked by
Royal
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or