Hello...
Now I'm having problems with EditForm. I have added the following template. When I click the pencil to edit a row of the RadGrid (databounded to a datasource) all TextBox fields appear empty.
Any help woul be greatly appreciated
Now I'm having problems with EditForm. I have added the following template. When I click the pencil to edit a row of the RadGrid (databounded to a datasource) all TextBox fields appear empty.
Any help woul be greatly appreciated
<EditFormSettings EditFormType="Template"> |
<EditColumn UniqueName="EditCommandColumn1"></EditColumn> |
<FormTemplate> |
<rad:RadPanelbar ID="pnlUsuario" runat="server" Skin="Default2006" Width="100%" ValidationGroup="grpSeleccion"> |
<Items> |
<rad:RadPanelItem runat="server" Text="Datos Básicos"> |
<ItemTemplate> |
<table style="width: 360px"> |
<tr> |
<td class="label" style="width: 110px">Nombre</td> |
<td style="width: 250px"><asp:TextBox CssClass="texto" MaxLength="50" Columns="50" ID="txtNombre" Text='<%# Bind("FirstName") %>' runat="server"></asp:TextBox> |
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtNombre" |
ErrorMessage="Debe ingresar el nombre del usuario" SetFocusOnError="True" Display="Dynamic">*</asp:RequiredFieldValidator></td> |
</tr> |
<tr> |
<td class="label" style="width: 110px">Apellidos</td> |
<td style="width: 240px"><asp:TextBox CssClass="texto" MaxLength="50" Columns="50" ID="txtApellidos" Text='<%# Bind("LastName") %>' runat="server"></asp:TextBox> |
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtApellidos" |
ErrorMessage="Debe ingresar los apellidos del usuario" SetFocusOnError="True" Display="Dynamic">*</asp:RequiredFieldValidator></td> |
</tr> |
<tr> |
<td class="label" style="width: 110px">Nombre Usuario</td> |
<td style="width: 240px"><asp:TextBox CssClass="texto" MaxLength="50" Columns="50" ID="txtUsername" Text='<%# Bind("UserName") %>' runat="server"></asp:TextBox> |
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtUsername" |
ErrorMessage="Debe ingresar el nombre de usuario que se usará para conectarse al sistema" |
SetFocusOnError="True" Display="Dynamic">*</asp:RequiredFieldValidator></td> |
</tr> |
<tr> |
<td class="label" style="width: 110px">Contraseña</td> |
<td style="width: 240px"><asp:TextBox CssClass="texto" MaxLength="50" Columns="52" ID="txtPassword" TextMode="Password" runat="server"></asp:TextBox> |
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtPassword" |
Display="Dynamic" ErrorMessage="Debe ingresar la contraseña del usuario" SetFocusOnError="True">*</asp:RequiredFieldValidator></td> |
</tr> |
<tr> |
<td class="label" style="width: 110px">Repita Contraseña</td> |
<td style="width: 240px"><asp:TextBox CssClass="texto" MaxLength="50" Columns="52" ID="txtPassword2" TextMode="Password" runat="server"></asp:TextBox> |
<asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtPassword" |
ControlToValidate="txtPassword2" ErrorMessage="Las contraseñas no coinciden" |
SetFocusOnError="True" Display="Dynamic">*</asp:CompareValidator></td> |
</tr> |
<tr> |
<td class="label" style="width: 110px">RUT</td> |
<td style="width: 240px"><asp:TextBox CssClass="texto" MaxLength="10" Columns="12" ID="txtRUT" Text='<%# Bind("RUT") %>' runat="server"></asp:TextBox> <asp:TextBox CssClass="texto" MaxLength="1" Columns="2" ID="txtDV" Text='<%# Bind("DV") %>' runat="server"></asp:TextBox> |
<fw:rutvalidator id="RutValidator1" runat="server" controltovalidate="txtRUT" controltovalidatedv="txtDV" |
errormessage="El RUT fue ingresado incorrectamente" setfocusonerror="True" Display="Dynamic">*</fw:rutvalidator> |
</td> |
</tr> |
<tr> |
<td class="label" style="width: 110px">E-mail</td> |
<td style="width: 240px"><asp:TextBox CssClass="texto" MaxLength="50" Columns="50" ID="txtEmail" Text='<%# Bind("Email") %>' runat="server"></asp:TextBox> |
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmail" |
ErrorMessage="El e-mail fue ingresado incorrectamnte" SetFocusOnError="True" |
ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Display="Dynamic">*</asp:RegularExpressionValidator></td> |
</tr> |
</table> |
</ItemTemplate> |
</rad:RadPanelItem> |
<rad:RadPanelItem runat="server" Text="Sistemas"> |
<ItemTemplate> |
<asp:CheckBoxList ID="chkSistemas" runat="server" DataSourceID="objSistemas" DataTextField="ApplicationName" |
DataValueField="ApplicationId" RepeatColumns="5"> |
</asp:CheckBoxList> |
</ItemTemplate> |
</rad:RadPanelItem> |
</Items> |
</rad:RadPanelbar> |
<br /> |
<asp:ImageButton ID="btnAlmacenar" runat="server" ImageUrl="~/images/almacenar.gif" CommandName="Update" /> |
|
<asp:ImageButton ID="btnVolver" runat="server" CausesValidation="false" ImageUrl="~/images/volver.gif" CommandName="Cancel" /> |
<br /> |
</FormTemplate> |
</EditFormSettings> |