Hi,
I want to know how set a text for Label, Literal, ... in a <FormTemplate> of a RadGrid.
My project uses a GlobalResource and a function which loop all controls (and subcontrols, ... with recursivity) and change text of control if resource exists. But when I try to find controls in a GridEditableItem, I don't find my Label. Here an example :
Is there any method to modify texts of controls in a FormTemplate.
Thanks.
I want to know how set a text for Label, Literal, ... in a <FormTemplate> of a RadGrid.
My project uses a GlobalResource and a function which loop all controls (and subcontrols, ... with recursivity) and change text of control if resource exists. But when I try to find controls in a GridEditableItem, I don't find my Label. Here an example :
| <FormTemplate> |
| <b>User Details</b> |
| <table id="tblEditForm"> |
| <tr> |
| <td><asp:Label ID="lblLangLastname" Text="<$>" runat="server"></asp:Label> : </td> |
| <td><asp:TextBox ID="TextBox12" runat="server" Text='<%#Bind("usr_lastname")%>' /></td> |
| </tr> |
| </table> |
| </FormTemplate> |
| protected void gridUsers_ItemCommand(object source, GridCommandEventArgs e) |
| { |
| if ((e.CommandName == RadGrid.InitInsertCommandName) || (e.CommandName==RadGrid.EditCommandName)) |
| { |
| SetTraductions("", ((GridEditableItem)e.Item)); |
| } |
| } |
Is there any method to modify texts of controls in a FormTemplate.
Thanks.