onSelectedIndexChanged javascript code

2 posts, 1 answers
  1. Lubna Ansari
    Lubna Ansari avatar
    65 posts
    Member since:
    Feb 2010

    Posted 31 Mar 2010 Link to this post


    I am adding a RadComboBox dynamically from code behind.
    I've assisgned the onSelectedIndexChanged event to the combo. The following code is firing properly and I am getting item as object. But I need to check the selected value of combobox so that I can compare it with my string.
    How to do that??



    onSelectedIndexChanged(sender, eventArgs)




    var item = eventArgs.get_item();






  2. Answer
    robertw102 avatar
    265 posts
    Member since:
    Jul 2007

    Posted 31 Mar 2010 Link to this post

    To get the value of the selected item you would do this:

    var selectedValue = eventArgs.get_item().get_value(); 

    You can view all the exposed methods for the client-side RadComboBoxItem here:

    I hope that helps.
  3. DevCraft R3 2016 release webinar banner
Back to Top