Click here to Skip to main content
11,707,254 members (61,407 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: DevExpress MVC2
this is my code

//菜单
             var pane = settings.Panes.Add();
             var navigationPane = pane.Panes.Add();
             navigationPane.MaxSize = 200;
             navigationPane.PaneStyle.BackColor = System.Drawing.Color.FromArgb(0xF4F0DB);
             navigationPane.ShowCollapseBackwardButton=DefaultBoolean.True;
             navigationPane.SetContent(() =>
             { %>
                 <%
                     Html.DevExpress().TreeView(
                         settingsTree =>
                         {
                             settingsTree.Width = 500;
                             settingsTree.Name = "tvMenuItems";
                             settingsTree.ShowTreeLines = true;
                             settingsTree.ShowExpandButtons = true;
                             settingsTree.AllowSelectNode = true;
                             settingsTree.EnableAnimation = true;
                             settingsTree.EnableHotTrack = false;
                             settingsTree.EnableTheming = true;
                             settingsTree.CheckNodesRecursive = false;
                             settingsTree.Images.NodeImage.Width = 13;
                             settingsTree.Styles.NodeImage.Paddings.PaddingTop = 3;
                             One.Controllers.MainController.CreateTreeViewNodesRecursive(settingsTree.Nodes,"00");
                             settingsTree.ClientSideEvents.NodeClick = "OnNodeClick";
                         }
                     ).Render();
                     %>
             <%});
             pane = pane.Panes.Add();
             //内容页
             var mainContentPane = pane.Panes.Add();
             mainContentPane.PaneStyle.BackColor = System.Drawing.Color.FromArgb(0xF4F0DB);
             mainContentPane.ScrollBars = ScrollBars.Auto;
             mainContentPane.SetContent(() =>
             { %>
               <% Html.DevExpress().PageControl(
                         settingsPageControl =>
                         {
                             settingsPageControl.Name = "pageControl";
                             settingsPageControl.Width = 1000;
                             settingsPageControl.Height = 500;
                             settingsPageControl.TabPages.Add("").SetContent(() =>
                             {%>
                                   <% Html.RenderAction("Sys_userIndex", "Sys_user"); %>
                             <%});
                         })
                         .Render();
                        %>
                   });
             <%});
Posted 7-Mar-12 18:16pm
ls_zai312

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 145
1 OriginalGriff 141
2 chainerlt 110
3 ppolymorphe 104
4 Mika Wendelius 90
0 OriginalGriff 9,178
1 Sergey Alexandrovich Kryukov 8,562
2 CPallini 5,189
3 Maciej Los 4,806
4 Mika Wendelius 3,706


Advertise | Privacy | Mobile
Web04 | 2.8.150819.1 | Last Updated 8 Mar 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100