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

Synchronize RadComboBoxes

1 Answer 70 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
JSON
Top achievements
Rank 1
JSON asked on 17 Feb 2012, 01:33 PM
I have two RadComboBoxes, one to select a primary value using load on demand and the other to select a secondary value. When a value is selected in the primary control, I need to bind the secondary control with value relative to the primary selected value. (parent / child)

I know this can be accomplished using AJAX, but I could use an example of how to do this.

Thank you

SteveO

 

<table>
  
  
  
  
<tr>
  
  
  
  
<td style="text-align: right; white-space:nowrap">
  
  
  
<asp:Label ID="Label2" runat="server" Text="Case-Nbr:" Font-Bold="true" />
  
  
  
</td>
  
  
  
  
<td>
  
  
  
<telerik:RadComboBox ID="RadComboBox5" 
  
runat="server" 
  
Width="150px"
  
MarkFirstMatch="true"
  
AllowCustomText="True"
  
HighlightTemplatedItems="true" 
  
DropDownWidth="150px" 
  
CollapseAnimation-Duration="1"
  
EnableLoadOnDemand="true"
  
EnableVirtualScrolling="true"
  
ShowMoreResultsBox="true"
  
EmptyMessage="Select Case #" 
  
OnItemsRequested="CaseNbr_ItemsRequested">
  
  
  
</telerik:RadComboBox>
  
  
  
</td>
  
  
  
  
<td style="text-align: right">
  
  
  
<asp:Label runat="server" ID="Label16" style="font-weight: bold" Text="Item:"></asp:Label>
  
  
  
</td>
  
  
  
  
<td style="text-align: left">
  
  
  
<telerik:RadComboBox 
  
ID="ddl1" 
  
runat="server" 
  
DataSourceID="SqlDataSource10" 
  
DataValueField="item" 
  
DataTextField="item" 
  
OnClientFocus="getItems"
  
  
  
Width="100px">
  
  
  
</telerik:RadComboBox>
  
  
  
</td>
  
  
  
  
</tr>
  
  
  
  
<tr><td> </td></tr>
  
  
  
  
<tr>
  
  
  
<td colspan="4" style="text-align: center">
  
  
  
<asp:button ID="Button11" runat="server" BackColor="Blue" ForeColor="White" Text="Search" ToolTip="Search Article Records" OnClick="Search_OnClick" />
  
  
  
</td>
  
  
  
</tr>
  
  
  
</table>
  
  

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 17 Feb 2012, 01:49 PM
Hello,

Check the following demo link which explains your requirement.Hope this helps.
ComboBox / Related ComboBoxes

-Shinu.
Tags
ComboBox
Asked by
JSON
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or