The last post I created with that title was unreadable so I am trying again.
I want to make one RadCombobox have the same selection as another. They both have the same items and if I select "5" on one, I want the other to automatically be the same. This used to work in previous versions of the RadComboboxes, allowing the actual and billable minutes comboboxes to be the same.
The following used to work in previous versions of the RadCombobox but doesn't any more.
| function ActualMinutesChanged(item){ |
| var minutesCombo = <%= BillableMinutes.ClientID %>; |
| minutesCombo.FindItemByValue(item.ComboBox.GetValue()).Select(); |
| } |
I have changed the code to the following but I need to now how to actually select an item in the second combobox (billable minutes) to be the same as the actual minutes.
| function ActualHoursChanged(sender, eventArgs){ |
| var item = eventArgs.get_item(); |
| var hours = item.get_index(); |
| var hoursCombo = $find("<%= BillableHours.ClientID %>"); |
| hoursCombo._selectedIndex = hours; |
| } |
So, how do I select using the new client-side JavaScript code? Thanks!