User1065545921 posted
I am using a telerik radcombo box dropdownlist. I am pulling AssociateName, Orgcode and Position data from sql data. When I make my selection from the dropdown box, I only have the AssociateName being populated in the To: field.
I would like the other data that I am pulling in teh dropdown box, the Orgcode and Position to be populated in their own textbox fields. So upon selection of dropdown item, populate the Store: field with 'Orgcode' and Position: field with 'Position'
data from sql database. Not sure how to accomplish this???
ASXC Page
</asp:TableRow>
<asp:TableRow ID="trSubmittedTo" runat="server">
<asp:TableCell ID="tcSubmittedTo" runat="Server">
<asp:Label runat="server" ID="lblSubmittedTo" Font-Size="Small" Font-Names="arial">To:</asp:Label>  
<%--<asp:textbox ID="tbSubmittedTo" runat="server" Width="175px"></asp:textbox>  --%>
<telerik:RadComboBox runat="server"
ID="ddlAlternateManagerID"
DataSourceID="UserSqlDataSource"
DataTextField="AssociateFullName"
DataValueField="AssociateFullName"
HighlightTemplatedItems="true"
EnableLoadOnDemand="True" EnableItemCaching="true"
MarkFirstMatch="true" AllowCustomText="true"
EmptyMessage="Last name"
Height="190px"
Width="220px"
DropDownWidth="420px"
>
<HeaderTemplate>
<table border="1">
<tr>
<td>ContactName</td>
<td>Store</td>
<td>Job Title</td>
</tr>
</table>
</HeaderTemplate>
<ItemTemplate>
<table border="1">
<tr>
<td><%# DataBinder.Eval(Container.DataItem, "AssociateFullName")%></td>
<td><%# DataBinder.Eval(Container.DataItem, "Orgcode") %></td>
<td><%#DataBinder.Eval(Container.DataItem, "Position")%></td>
</tr>
</table>
</ItemTemplate>
</telerik:RadComboBox>
<asp:SqlDataSource ID="UserSqlDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:HRCMSConnectionString
%>" />
<asp:Label runat="server" id="lblSubmittedToValidate" Font-Size="small" Font-Bold="false" ForeColor="red"></asp:Label>  
</asp:TableCell>
<asp:TableCell>
<asp:Label runat="server" ID="lblStore" Font-Size="Small" Font-Names="arial">Store:</asp:Label> 
<asp:TextBox ID="tbStore" runat="server" Width="100px"></asp:TextBox>
<asp:Label runat="server" id="lblStoreValidate" Font-Size="small" Font-Bold="false" ForeColor="red"></asp:Label>
</asp:TableCell>
<asp:TableCell>
<asp:Label runat="server" ID="lblPosition" Font-Size="Small" Font-Names="arial">Position:</asp:Label> 
<asp:TextBox ID="tbPosition" runat="server" Width="175px"></asp:TextBox>
<asp:Label runat="server" id="lblPositionValidate" Font-Size="small" Font-Bold="false" ForeColor="red"></asp:Label>
</asp:TableCell>
</asp:TableRow>