Example #1
0
 protected override PositionInfo CalcColumnDrag(GridHitInfo hit, GridColumn column)
 {
     PositionInfo patchedPI = new PositionInfo();
     patchedPI = base.CalcColumnDrag(hit, column);
     if (patchedPI.Index == HideElementPosition && patchedPI.Valid)
     {
         CustomGridColumn col = column as CustomGridColumn;
         if (col != null)
             if (!col.OptionsColumn.AllowQuickHide)
             {
                 patchedPI = new PositionInfo();
                 patchedPI.Valid = false;
             }
     }
     return patchedPI;
 }
Example #2
0
 protected virtual bool GetColumnMoveState(CustomGridColumn column)
 {
     return column.OptionsColumn.AllowMove && OptionsCustomization.AllowColumnMoving;
 }
Example #3
0
 //protected virtual void PopulateHideEdit()
 protected virtual bool GetColumnHideState(CustomGridColumn column)
 {
     return column.OptionsColumn.AllowQuickHide && OptionsCustomization.AllowQuickHideColumns;
 }