Click here to Skip to main content
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_zai309

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

  Print Answers RSS
0 OriginalGriff 6,649
1 Sergey Alexandrovich Kryukov 6,280
2 CPallini 5,230
3 George Jonsson 3,574
4 Gihan Liyanage 2,522


Advertise | Privacy | Mobile
Web03 | 2.8.140916.1 | Last Updated 8 Mar 2012
Copyright © CodeProject, 1999-2014
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