Setting Default Values for a Child WebCombo

3 replies. Last post: October 29, 2010 10:59 AM by Yudi
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Ellen Member

I have three combo boxes: cbo1 is a Parent of cbo2 and cbo2 is a Parent of cbo3.  All combos are populated dynamically.

 

Everything works fine with cbo1: I can set the Default value on Load. The problem is with cbo2 and cbo3. After I select a value in cbo1, I use a function to set Default Value for cbo2:

 

cbo1.LayoutSettings.ClientSideEvents.OnAfterItemSelected = "onCbo1SelChange"

 

I tried to use two methods listed below in onCbo1SelChange to set the Default value, but both methods don't work:

cbo2.SetSelectedRowByValue(Value);

cbo2.SetSelectedIndex(id);

 

If I use cbo2.SetText(sText), the Default value is set correctly in cbo2, but cbo3 is empty. Cbo3 should get populated when a value is selected in cbo2. When I manually open cbo2 and select a value, then cbo3 is populated.

 

The problem exists only when I use a Bound method to populate the combos. If I use an Unbound method, everything works fine, but I cannot use Unbound method in this case. Please help.

 

All times are GMT -5. The time now is 6:41 PM.
Previous Next