| 0. | <wm:SlidingMenu id="smSlidingDataSetInEditMode" runat="server"> |
| 1. | | <SlidingMenuStyle Width="100%" Height="95%" SlideSmootheness="20" /> |
| 2. | | <GroupHeaderStyle Height="20" BorderWidth="1" BorderColor="white" BackgroundColor="f1f1f2" /> |
| 3. | | <GroupCanvasStyle HorisontalScrollbar="Auto" /> |
| 4. | | <!--The first Group is manually added--> |
| 5. | | <AddManualGroup> |
| 6. | | | <GroupCanvasStyle BackgroundColor="white" /> |
| 7. | | | <GroupHeader> |
| 8. | | | | <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"> |
| 9. | | | | | <tr> |
| 10. | | | | | | <td><img src="/images/pixel_transparent.gif" width="139" height="1"></td> |
| 11. | | | | | | <td align="center" width="100%"><span class="">TIPS & Disclaimer</span></td> |
| 12. | | | | | | <td><img src="/images/slidingmenu/example_SlidingMenuInEditMode/pen_w78h100_01.gif" border="0"></td> |
| 13. | | | | | | <td><img src="/images/pixel_transparent.gif" width="30" height="1"></td> |
| 14. | | | | | </tr> |
| 15. | | | | </table> |
| 16. | | | </GroupHeader> |
| 17. | | | <GroupCanvas> |
| 18. | | | | <table class="text_bread" style="margin:5"> |
| 19. | | | | | <tr> |
| 20. | | | | | | <td> |
| 21. | | | | | You can add, remove and change rows. However be aware ... |
| 22. | | | | | | </td> |
| 23. | | | | | </tr> |
| 24. | | | | </table> |
| 25. | | | </GroupCanvas> |
| 26. | | </AddManualGroup> |
| 27. | | <!--After the manual added Group comes the Databound Groups--> |
| 28. | | <DataBound> |
| 29. | | | <HeaderTemplate> |
| 30. | | | | <!--Here I use a table to layout the GroupHeader--> |
| 31. | | | | <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"> |
| 32. | | | | | <tr> |
| 33. | | | | | | <td><img src="/images/pixel_transparent.gif" width="139" height="1"></td> |
| 34. | | | | | | <td align="center" width="100%"> |
| 35. | | | | | | | <asp:Label ID="lblTableName" Runat="server"></asp:Label> |
| 36. | | | | | | </td> |
| 37. | | | | | | <td> |
| 38. | | | | | | | <asp:Image ID="imgPen" Runat="server" BorderWidth="0"></asp:Image> |
| 39. | | | | | | </td> |
| 40. | | | | | | <td><img src="/images/pixel_transparent.gif" width="30" height="0"></td> |
| 41. | | | | | </tr> |
| 42. | | | | </table> |
| 43. | | | </HeaderTemplate> |
| 44. | | | <CanvasTemplate> |
| 45. | | | | <!--And I use a table to layout the GroupCanvas as well--> |
| 46. | | | | <table width="100%" height="100%"> |
| 47. | | | | | <tr> |
| 48. | | | | | | <td align="center"> |
| 49. | | | | | | | <!--because of what may be an error in the SlidingMenu, I need to contain the SlidingMenu inside a table, if the SlidingMenu is to be horisontally centered using a table cell--> |
| 50. | | | | | | | <table> |
| 51. | | | | | | | | <tr> |
| 52. | | | | | | | | | <td> |
| 53. | | | | | | | | | | <asp:DataGrid ID="dgTable" Runat="server" OnItemCommand="ItemCommand" OnEditCommand="EditCommand" OnCancelCommand="CancelCommand" OnUpdateCommand="UpdateCommand" OnSortCommand="SortCommand" AllowSorting="True"> |
| 54. | | | | | | | | | | | <HeaderStyle BackColor="#993333" ForeColor="White" /> |
| 55. | | | | | | | | | | | <ItemStyle BackColor="#FFFF00" /> |
| 56. | | | | | | | | | | | <AlternatingItemStyle BackColor="#FFFF99" /> |
| 57. | | | | | | | | | | | <SelectedItemStyle BackColor="blue" ForeColor="white" /> |
| 58. | | | | | | | | | | | <Columns> |
| 59. | | | | | | | | | | | | <!--The ImageButton column that I use to enable row selection--> |
| 60. | | | | | | | | | | | | <asp:TemplateColumn> |
| 61. | | | | | | | | | | | | | <ItemTemplate> |
| 62. | | | | | | | | | | | | | | <asp:ImageButton ID="ibRowSelect" Runat="server" CommandName="RowSelect" ImageUrl="/images/buttons/pin_unsticked.png" ImageAlign="AbsMiddle" /> |
| 63. | | | | | | | | | | | | | </ItemTemplate> |
| 64. | | | | | | | | | | | | </asp:TemplateColumn> |
| 65. | | | | | | | | | | | | <!--The standard edit column--> |
| 66. | | | | | | | | | | | | <asp:EditCommandColumn EditText="Edit" UpdateText="Update" CancelText="Cancel"> |
| 67. | | | | | | | | | | | | | <ItemStyle BackColor="blue" ForeColor="white" /> |
| 68. | | | | | | | | | | | | </asp:EditCommandColumn> |
| 69. | | | | | | | | | | | | <!--The rest of the columns are auto created by the DataGrid--> |
| 70. | | | | | | | | | | | </Columns> |
| 71. | | | | | | | | | | </asp:DataGrid> |
| 72. | | | | | | | | | </td> |
| 73. | | | | | | | | </tr> |
| 74. | | | | | | | | <tr> |
| 75. | | | | | | | | | <td> |
| 76. | | | | | | | | | | <!--The Add New Row and Delete Selected Row LinkButtons--> |
| 77. | | | | | | | | | | <asp:LinkButton ID="lbtnAddNewRow" Runat="server" OnCommand="AddNewRow">Add New Row</asp:LinkButton> |
| 78. | | | | | | | | | | <asp:LinkButton ID="lbtnDeleteSelectedRow" Runat="server" OnCommand="DeleteSelectedRow">Delete Selected Row</asp:LinkButton> |
| 79. | | | | | | | | | </td> |
| 80. | | | | | | | | </tr> |
| 81. | | | | | | | </table> |
| 82. | | | | | | </td> |
| 83. | | | | | </tr> |
| 84. | | | | </table> |
| 85. | | | </CanvasTemplate> |
| 86. | | </DataBound> |
| 87. | </wm:SlidingMenu> |