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

Get selected values RadComboBox client side

2 Answers 1718 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Bakri
Top achievements
Rank 1
Bakri asked on 23 Feb 2015, 05:30 AM
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 Answers, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 25 Feb 2015, 11:51 AM
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.

 
0
lylia
Top achievements
Rank 1
answered on 18 May 2015, 09:34 AM

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)

 

Tags
ComboBox
Asked by
Bakri
Top achievements
Rank 1
Answers by
Nencho
Telerik team
lylia
Top achievements
Rank 1
Share this question
or