Get selected values RadComboBox client side

3 posts, 0 answers
  1. Bakri
    Bakri avatar
    1 posts
    Member since:
    Feb 2014

    Posted 22 Feb 2015 Link to this post

    I have rad Combo box
        <telerik:RadComboBox runat="server" ID="rcb" Height="150px" OnItemsRequested="rcb_ItemsRequested" AutoCompleteSeparator="," >
         </telerik:RadComboBox>
    I need to get Selected value from client side 
    i tried this
    function getvalue()
        {
            var combobox = $find("<%= rcb.ClientID %>");
            var value = combobox.get_selectedItem().get_value();
        }
    but get_selected Item get only last selected item .
    I need to get all selected Item.
  2. Nencho
    Admin
    Nencho avatar
    1458 posts

    Posted 25 Feb 2015 Link to this post

    Hello Bakri,

    I tried to replicate the described issue, but to no avail. You can find in the attachment a simplified example, demonstrating the behavior at my end. Could you give it a try at yours and let us know the results. In addition, if the demonstrated implementation differs from the one you have at your end, please let us know so we could try to replicate it locally.

    Regards,
    Nencho
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. lylia
    lylia avatar
    1 posts
    Member since:
    May 2015

    Posted 18 May 2015 in reply to Nencho Link to this post

    Hello Bakri,

    try to use  :

    OnClientSelectedIndexChanged="getvalue()"  then , you create your function function getvalue(sender, eventArgs

    ){       var combobox = $find("<%= rcb.ClientID %>");
            var value = combobox.get_selectedItem().get_value();

    }​

    you'll get the current values not the last selected.

    (it works for me)

     

Back to Top