Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: DevExpressMVC2
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
Your Filters
Interested
Ignored
     
0 Shai Vashdi 1,010
1 OriginalGriff 447
2 Manas Bhardwaj 378
3 Tadit Dash 330
4 Damith Weerasinghe 320
0 Sergey Alexandrovich Kryukov 9,625
1 OriginalGriff 6,065
2 Peter Leow 4,500
3 Maciej Los 3,565
4 Abhinav S 3,513


Advertise | Privacy | Mobile
Web02 | 2.8.140415.2 | Last Updated 8 Mar 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid