Two Combobox

2 posts, 0 answers
  1. aabdan
    aabdan avatar
    26 posts
    Member since:
    Apr 2007

    Posted 22 Dec 2008 Link to this post

    i have two combobox one to display Text and other to display Value

    i need to reflect selected index change on one of them to other one
    so i create a user control with tow combo box
    and the put javascript function to maintain change

    OnClientSelectedIndexChanging



    function

     

    OnClientSelectedIndexChanging(sender, eventArgs)

     

    {

    var

     

    Combo1Item = eventArgs.get_item();

     

    var

     

    Combo1Value = Combo1Item.get_value();

     

    var

     

    Combo2 = $find("<%= RadComboBoxDescription.ClientID %>");

     

    var

     

    Combo2Value = Combo2.findItemByValue(Combo1Value);

     

    if

     

    (Combo2Value)

     

    {

    Combo2Value.select();

    }

    }


    for each combo box
    But when i add the function to both of them
    i hade Stack overflow at line 62


    Please if there is any example about same idea tell me
    Regards,
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 22 Dec 2008 Link to this post

    Hi,

    Check out the online demo which explains how the comboboxes can interact with each other using client-side methods and requesting the items on demand.
    Multiple ComboBoxes

    Shinu
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top