
<telerik:RadEditor ID="tbNote" runat="server" Width="502px" TextMode="MultiLine" Wrap="True" EditModes="Design" Height="250px" Style="border: 1px solid navy;"> <Tools> <telerik:EditorToolGroup Tag="BasicFunctions"> <telerik:EditorTool Name="Cut" /> <telerik:EditorTool Name="Copy" /> <telerik:EditorTool Name="Paste" /> <telerik:EditorSeparator /> <telerik:EditorTool Name="Bold" /> <telerik:EditorTool Name="Italic" /> <telerik:EditorTool Name="Underline" /> <telerik:EditorTool Name="StrikeThrough" /> <telerik:EditorSeparator /> <telerik:EditorTool Name="FindAndReplace" /> <telerik:EditorTool Name="Print" /> <telerik:EditorTool Name="AjaxSpellCheck" /> <telerik:EditorSeparator /> <telerik:EditorTool Name="Undo" /> <telerik:EditorTool Name="Redo" /> <telerik:EditorSeparator /> <telerik:EditorTool Name="Outdent" /> <telerik:EditorTool Name="Indent" /> <telerik:EditorTool Name="InsertOrderedList" /> <telerik:EditorTool Name="InsertUnorderedList" /> </telerik:EditorToolGroup> <telerik:EditorToolGroup Tag="FontTools"> <telerik:EditorTool Name="FontName" /> <telerik:EditorTool Name="FontSize" /> <telerik:EditorSeparator /> <telerik:EditorTool Name="JustifyLeft" /> <telerik:EditorTool Name="JustifyCenter" /> <telerik:EditorTool Name="JustifyRight" /> <telerik:EditorTool Name="JustifyFull" /> </telerik:EditorToolGroup> </Tools> <Content> </Content> </telerik:RadEditor>
<PagerStyle Mode="slider" Wrap="true"></PagerStyle>
<
telerik:RadWindowManager runat="server" ID="RadWindowManager1"
VisibleStatusbar="false" Height="600px" Width="800px"
>
<Windows>
<telerik:RadWindow ID="TranslationView" runat="server" OnClientClose="OnClientClose"
NavigateUrl="TagLanguageVerticalView.aspx" runat="server" VisibleStatusbar="false"
Title="Translation View">
</telerik:RadWindow>
<telerik:RadWindow ID="History" Top="20" Left="100"
runat="server" NavigateUrl="History.aspx" VisibleStatusBar="false" Title="History">
</telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>
<telerik:RadButton runat="server" ID="btn" OnClientClick="alert('test');" Width="100" ButtonType="LinkButton| <EditFormSettings CaptionDataField="Edit contact:" ColumnNumber="2" EditFormType="Template" > |
| <FormTemplate> |
| <table id="ContactsMiddle" runat="server" style="width:100%; border:none 0px #ffffff; color:#9EB6CE; text-align:left;"> |
| <tr> |
| <td style="width:100px; padding-left:10px" >Last Name:</td> |
| <td style="width:250px;"><asp:TextBox runat="server" EnableViewState="true" Width="70%" ID="inpContactName" Text='<%#Bind("LastName")%>'></asp:TextBox></td> |
| <td style="width:100px; padding-left:10px" >First Name:</td> |
| <td style="width:250px;"><asp:TextBox runat="server" EnableViewState="true" Width="70%" ID="inpContactHomePhone" Text='<%#Bind("FirstName")%>'></asp:TextBox></td> |
| </tr> |
| <tr> |
| <td style="width:100px; padding-left:10px" >Title:</td> |
| <td style="width:250px;"><asp:TextBox runat="server" EnableViewState="true" Width="70%" ID="inpContactEmail" Text='<%#Bind("Title")%>'></asp:TextBox></td> |
| <td style="width:100px; padding-left:10px" >Address:</td> |
| <td style="width:250px;"><asp:TextBox runat="server" EnableViewState="true" Width="70%" ID="inpContactCellPhone" Text='<%#Bind("Address")%>'></asp:TextBox></td> |
| </tr> |
| <tr> |
| <td style="width:100px; padding-left:10px" >Date:</td> |
| <td style="width:250px;"><asp:TextBox runat="server" EnableViewState="true" Width="70%" ID="TextBox1" Text='<%#Bind("HireDate")%>'></asp:TextBox></td> |
| <td style="width:350px; padding-left:10px" colspan="2" > |
| <asp:LinkButton CssClass="lnkSubmit" ID="btnOK" runat="server" CommandName="Update">OK</asp:LinkButton> |
| <asp:LinkButton CssClass="lnkSubmit" ID="btnCancel" runat="server" CommandName="Cancel">Cancel</asp:LinkButton> |
| </td> |
| </tr> |
| </table> |
| </FormTemplate> |
| </EditFormSettings> |
I see only one example with edit form template on your web site, and that one is using non-standard data source and is visualy very difficult to follow. Not to mention dirty code with ? instead of parameter names and non-maximisable code window. Link: http://demos.telerik.com/ASPNET/Prometheus/Grid/Examples/DataEditing/TemplateFormUpdate/DefaultCS.aspx
Please let me know how to use custom template form for automatic operations.
Regards,
Alex