private void ShowNavigationItemAction_CustomizeControl(object sender, DevExpress.ExpressApp.Actions.CustomizeControlEventArgs e) { ASPxNavBar navBar = e.Control as ASPxNavBar; if (navBar != null) { // Customize the main ASPxNavBar control. navBar.EnableAnimation = true; foreach (NavBarGroup group in navBar.Groups) { foreach (NavBarItem item in group.Items) { if (item is NavBarTreeViewItem) { ASPxTreeView innerTreeView = ((NavBarTreeViewItem)item).TreeViewNavigationControl.Control; // Customize the inner ASPxTreeView control inside the navigation group. innerTreeView.ShowExpandButtons = false; } } } } else { ASPxTreeView mainTreeView = e.Control as ASPxTreeView; if (mainTreeView != null) { // Customize the main ASPxTreeView control. mainTreeView.ShowExpandButtons = false; } } }
private void ShowNavigationItemAction_CustomizeControl(object sender, DevExpress.ExpressApp.Actions.CustomizeControlEventArgs e) { NavBarControl navBar = e.Control as NavBarControl; if (navBar != null) { // Customize NavBar foreach (NavBarGroup group in navBar.Groups) { if (group.ControlContainer != null && group.ControlContainer.Controls.Count == 1) { TreeList treeList = group.ControlContainer.Controls[0] as TreeList; // Customize embedded TreeList } } } else { TreeList treeList = e.Control as TreeList; if (treeList != null) { // Customize TreeList } } }
private void ShowNavigationItemAction_CustomizeControl(object sender, DevExpress.ExpressApp.Actions.CustomizeControlEventArgs e) { NavBarNavigationControl navBar = e.Control as NavBarNavigationControl; if (navBar != null) { // Customize NavBar navBar.SkinExplorerBarViewScrollStyle = SkinExplorerBarViewScrollStyle.ScrollBar; navBar.PaintStyleKind = NavBarViewKind.ExplorerBar; } else { TreeListNavigationControl treeList = e.Control as TreeListNavigationControl; if (treeList != null) { // Customize TreeList } } }