Ejemplo n.º 1
0
 protected override void SetDetailViewToolTips()
 {
     foreach (PropertyEditor editor in ((DetailView)View).GetItems <PropertyEditor>())
     {
         if ((editor.Control is WebControl) && TooltipCalculator.HasToolTip(editor.Model))
         {
             ((WebControl)(editor.Control)).ToolTip = TooltipCalculator.GetToolTip(editor.Model);
         }
     }
 }
Ejemplo n.º 2
0
        protected override void SetListViewToolTips()
        {
            var editor = ((ListView)View).Editor as ColumnsListEditor;

            if (editor != null)
            {
                foreach (ColumnWrapper columnWrapper in editor.Columns)
                {
                    var column = columnWrapper.Column();
                    if (column != null && TooltipCalculator.HasToolTip(column.Model()))
                    {
                        column.ToolTip = TooltipCalculator.GetToolTip(column.Model());
                    }
                }
            }
        }
Ejemplo n.º 3
0
        protected override void SetListViewToolTips()
        {
            var editor = ((ListView)View).Editor as GridListEditor;

            if (editor != null)
            {
                foreach (ColumnWrapper columnWrapper in editor.Columns)
                {
                    XafGridColumn column = ((XafGridColumnWrapper)columnWrapper).Column;
                    if (TooltipCalculator.HasToolTip(column.Model))
                    {
                        column.ToolTip = TooltipCalculator.GetToolTip(column.Model);
                    }
                }
            }
        }
Ejemplo n.º 4
0
        protected override void SetListViewToolTips()
        {
            var editor = ((ListView)View).Editor as ASPxGridListEditor;

            if (editor != null)
            {
                foreach (ColumnWrapper columnWrapper in editor.Columns)
                {
                    if (columnWrapper is ASPxGridViewColumnWrapper)
                    {
                        GridViewDataColumnWithInfo column =
                            ((ASPxGridViewColumnWrapper)columnWrapper).Column;
                        if (TooltipCalculator.HasToolTip(column.Model))
                        {
                            column.ToolTip = TooltipCalculator.GetToolTip(column.Model);
                        }
                    }
                }
            }
        }
Ejemplo n.º 5
0
        protected override void SetListViewToolTips()
        {
            var editor = ((ListView)View).Editor as ASPxGridListEditor;

            if (editor != null)
            {
                foreach (ColumnWrapper columnWrapper in editor.Columns)
                {
                    var wrapper = columnWrapper as ASPxGridViewColumnWrapper;
                    if (wrapper != null)
                    {
                        GridViewDataColumn column =
                            wrapper.Column;
                        var modelListView = (IModelListView)View.Model;
                        if (TooltipCalculator.HasToolTip(column.Model(modelListView)))
                        {
                            column.ToolTip = TooltipCalculator.GetToolTip(column.Model(modelListView));
                        }
                    }
                }
            }
        }
Ejemplo n.º 6
0
 protected override void SetDetailViewToolTips()
 {
     foreach (PropertyEditor editor in ((DetailView)View).GetItems <PropertyEditor>())
     {
         var edit = editor.Control as BaseEdit;
         if (edit != null)
         {
             IModelMemberViewItem modelMemberViewItem = editor.Model;
             if (modelMemberViewItem.ModelMember.MemberInfo.MemberType.IsEnum)
             {
                 edit.EditValueChanged += (sender, args) => {
                     if (TooltipCalculator.HasToolTip(modelMemberViewItem))
                     {
                         edit.ToolTip = TooltipCalculator.GetToolTip(modelMemberViewItem, edit.EditValue);
                     }
                 };
             }
             if (TooltipCalculator.HasToolTip(modelMemberViewItem))
             {
                 edit.ToolTip = TooltipCalculator.GetToolTip(modelMemberViewItem);
             }
         }
     }
 }