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

RadCoboBox: Select a paticular item on button click

1 Answer 22 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
sandeep
Top achievements
Rank 1
sandeep asked on 31 Jul 2014, 04:52 PM
I have a radcombobox and a button control, i want to select a particular item in radcombo box on button click,completely through client side, can any one give me an example on how to implement it using javascript or jquery.If not possible then on server side.







Thanks

Sandeep

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 01 Aug 2014, 04:36 AM
Hi Sandeep,

Please try the below JavaScript code snippet to select an Item of RadComboBox from JavaScript.

JavaScript:
function selectComboItem(sender, args) {
    var comboBox = $find("<%=rcboDemoItems.ClientID%>"); // access radcombobox
    comboBox.findItemByText("Item2").select(); // select an item based on text
}

Let me know if you have any concern.
Thanks,
Shinu.
Tags
Ajax
Asked by
sandeep
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or