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

Two Combobox

1 Answer 55 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
aabdan
Top achievements
Rank 1
aabdan asked on 22 Dec 2008, 11:08 AM
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,

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 23 Dec 2008, 05:55 AM
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
Tags
ComboBox
Asked by
aabdan
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or