private void Frame_ProcessActionContainer(object sender, ProcessActionContainerEventArgs e) { if (e.ActionContainer is NavigationActionContainer) { ASPxNavBar navBar = ((NavigationActionContainer)e.ActionContainer).NavigationControl as ASPxNavBar; if (navBar != null) { // Customize the main ASPxNavBar control. navBar.EnableAnimation = true; foreach (NavBarGroup group in navBar.Groups) { group.Expanded = false; //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 = ((NavigationActionContainer)e.ActionContainer).NavigationControl as ASPxTreeView; if (mainTreeView != null) { // Customize the main ASPxTreeView control. mainTreeView.ShowExpandButtons = false; } } } }
void Frame_ProcessActionContainer(object sender, ProcessActionContainerEventArgs e) { var webActionContainer = e.ActionContainer as WebActionContainer; if (webActionContainer != null) { webActionContainer.Owner.CreateCustomMenuActionItem += OwnerOnCreateCustomMenuActionItem; } }
void Window_ProcessActionContainer(object sender, ProcessActionContainerEventArgs e) { UnsubscribeFromContainerEvents(); if (e.ActionContainer is NavigationActionContainer) { navActionContainer = e.ActionContainer as NavigationActionContainer; SubscribeToContainerEvents(); SetupNavBar(); } }
void FrameOnProcessActionContainer(object sender, ProcessActionContainerEventArgs e) { if (e.ActionContainer is NavigationActionContainer) { var navigationActionContainer = (NavigationActionContainer)e.ActionContainer; if (navigationActionContainer.NavigationControl is ASPxTreeList) { var treeListOptionsModelSynchronizer = new TreeListOptionsModelSynchronizer <IModelRootNavigationItems>(navigationActionContainer.NavigationControl, ((IModelApplicationNavigationItems)Application.Model).NavigationItems); treeListOptionsModelSynchronizer.ApplyModel(); } } }
protected void FrameOnProcessActionContainer(object sender, ProcessActionContainerEventArgs e) { var container = e.ActionContainer as TNavigationActionContainer; if (container != null) { var navigationActionContainer = container; var treeList = GetTreeList(navigationActionContainer); if (treeList != null) { var modelOptionsTreeList = ((IModelListViewOptionsTreeListNavigation)((IModelApplicationNavigationItems)Application.Model).NavigationItems).TreeListOptions; var treeListOptionsModelSynchronizer = TreeListOptionsModelSynchronizer(treeList, modelOptionsTreeList); treeListOptionsModelSynchronizer.ApplyModel(); } } }
void Frame_ProcessActionContainer(object sender, ProcessActionContainerEventArgs e) { var webActionContainer = e.ActionContainer as WebActionContainer; if (webActionContainer != null) { webActionContainer.Owner.CreateCustomMenuActionItem+=OwnerOnCreateCustomMenuActionItem; } }