DNN Module Editor Boilerplate


/ Published in: C#
Save to your folder(s)

Boilerplate for DNN editor


Copy this code and paste it in your HTML
  1. <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
  2. <%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/labelcontrol.ascx" %>
  3. <div class="dnnForm Normal">
  4. <asp:Panel runat="server" ID="pnlList">
  5. <telerik:RadGrid runat="server" AutoGenerateColumns="false" ID="theGrid">
  6. <HeaderStyle Font-Bold="true" />
  7. <MasterTableView>
  8. <Columns>
  9. <telerik:GridBoundColumn UniqueName="Id" Display="false" DataField="Id" />
  10. </Columns>
  11. </MasterTableView>
  12. </telerik:RadGrid>
  13. <div style="margin-top: 15px;">
  14. <asp:LinkButton runat="server" ID="adder" Text="Add New" CssClass="dnnPrimaryAction" />
  15. </div>
  16. </asp:Panel>
  17. <asp:Panel runat="server" ID="pnlEdit" Visible="false">
  18. <asp:HiddenField runat="server" ID="editingId" />
  19. <ul class="dnnActions">
  20. <li><asp:LinkButton runat="server" ID="saveButton" CssClass="dnnPrimaryAction" Text="Save" /></li>
  21. <li><asp:LinkButton runat="server" ID="closeButton" CssClass="dnnSecondaryAction" Text="Close" /></li>
  22. </ul>
  23. </asp:Panel>
  24. </div>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.