Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

listBox.get_selectedItem() returns null during Transferring

$
0
0
Hi Jeff,

Try to handle some of the ListBox's client events:

<script>
    var listBox;
 
    function pageLoad() {
        listBox = $find("<%= RadListBoxAccountSource.ClientID %>");
    }
 
    function SourceSelectedIndexChange() {
        //This works just fine.
        var selectedItem = listBox.get_selectedItem();
        alert("selected" + selectedItem.get_value());
    }
 
    function transferRight(sender, args) {
        var item = args.get_item();
    }
</script>
 
<telerik:RadListBox runat="server" ID="RadListBoxAccountSource" Height="300px" Width="300px" AllowTransfer="true" TransferToID="RadListBoxAccountDestination"
    ButtonSettings-AreaWidth="35px" OnClientTransferring="transferRight">
</telerik:RadListBox>
<telerik:RadListBox runat="server" ID="RadListBoxAccountDestination" Height="300px" Width="250px">
</telerik:RadListBox>


Regards,
Hristo Valyavicharski
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items

Viewing all articles
Browse latest Browse all 94857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>