Example #1
0
        private static bool IsVisibleCore(IModelNode node, string propertyName, GridListEditorVisibilityCalculatorHelper calculatorHelper)
        {
            var isVisible = calculatorHelper.IsVisible(node, propertyName);

            if (isVisible)
            {
                var modelListView = node as IModelListView ?? node.GetParent <IModelListView>();
                return(!modelListView.BandsLayout.Enable);
            }
            return(false);
        }
 public static ModelNode GetParent(IModelNode node)
 {
     return((ModelNode)(node.GetParent <IModelColumn>() ?? node.GetParent <IModelListView>()));
 }
Example #3
0
 public override bool IsVisible(IModelNode node, string propertyName)
 {
     return(base.IsVisible(node, propertyName) && node.GetParent <IModelListView>().BandsLayout.Enable);
 }
        public static ModelNode GetParent(IModelNode node)
        {
            var modelColumn = node.GetParent <IModelColumn>();

            return(modelColumn != null ? (ModelNode)modelColumn : (ModelNode)node.GetParent <IModelListView>());
        }
 public bool IsVisible(IModelNode node, string propertyName)
 {
     return(node.GetParent <IModelAction>().ToAction().GetType() == typeof(T));
 }