i have a RadComboBox and some TextBoxes in a UserControl that i use this UserControl as UserControlEditFrom in a Radgrid ,
when i go to edit mode from grid i need to bind the my combo box to own current value from DataBase,
in same cases about text boxes i use this code (like your example here : http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/usercontroleditform/defaultcs.aspx ) to bind text property of my text box :
<asp:TextBox Text=<%# DataBinder.Eval( Container, "DataItem.Title" ) %> ID="TextBoxTitle" runat="server"></asp:TextBox>
but about my combo box !!!!!!!!!!! what shoud i do ?
i search your example (http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/usercontroleditform/defaultcs.aspx ) but you dont use any line of code to bind combo but it work when i test your sample by editing different row of grid !!!!!!!!
what you do ? and what does it work ?
it is a part of your code front of your project that i think in the bold line you should have use anything to bind combo like textboxes :
<tr>
<td>Birth Date:</td>
<td>
<asp:TextBox id="TextBox11" runat="server"
Text='<%# DataBinder.Eval( Container, "DataItem.BirthDate") %>'
tabIndex=4>
</asp:textbox></td>
</tr>
<tr>
<td>Title Of Courtesy</td>
<td>
<asp:dropdownlist id="ddlTOC" runat="server" tabindex="7"></asp:dropdownlist></td>
</tr>
</table>
</td>
<td>
when i go to edit mode from grid i need to bind the my combo box to own current value from DataBase,
in same cases about text boxes i use this code (like your example here : http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/usercontroleditform/defaultcs.aspx ) to bind text property of my text box :
<asp:TextBox Text=<%# DataBinder.Eval( Container, "DataItem.Title" ) %> ID="TextBoxTitle" runat="server"></asp:TextBox>
but about my combo box !!!!!!!!!!! what shoud i do ?
i search your example (http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/usercontroleditform/defaultcs.aspx ) but you dont use any line of code to bind combo but it work when i test your sample by editing different row of grid !!!!!!!!
what you do ? and what does it work ?
it is a part of your code front of your project that i think in the bold line you should have use anything to bind combo like textboxes :
<tr>
<td>Birth Date:</td>
<td>
<asp:TextBox id="TextBox11" runat="server"
Text='<%# DataBinder.Eval( Container, "DataItem.BirthDate") %>'
tabIndex=4>
</asp:textbox></td>
</tr>
<tr>
<td>Title Of Courtesy</td>
<td>
<asp:dropdownlist id="ddlTOC" runat="server" tabindex="7"></asp:dropdownlist></td>
</tr>
</table>
</td>
<td>