RadCoboBox: Select a paticular item on button click

2 posts, 0 answers
  1. sandeep
    sandeep avatar
    17 posts
    Member since:
    May 2014

    Posted 31 Jul 2014 Link to this post

    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
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 31 Jul 2014 in reply to sandeep Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top