Ejemplo n.º 1
0
 BandedGridColumn FindBandedGridColumn(IModelColumnOptionsAdvBandedView modelColumn)
 {
     foreach (BandedGridColumn column in Control.GridView.Columns)
     {
         IGridColumnModelSynchronizer gridColumnInfo = GetColumnInfo(column, column.View);
         if (gridColumnInfo != null && gridColumnInfo.PropertyName == modelColumn.PropertyName)
         {
             return(column);
         }
     }
     return(null);
 }
Ejemplo n.º 2
0
 public void ApplyModel(IModelColumn columnInfo) {
     _model = (IModelColumnOptionsAdvBandedView)columnInfo;
     CreateModelSynchronizer().ApplyModel();
 }
Ejemplo n.º 3
0
        public static IModelList <IModelGridBand> Get_ListViewBands(IModelColumnOptionsAdvBandedView modelColumnOptionsAdvBandedView)
        {
            var viewBands = ((IModelListViewOptionsAdvBandedView)modelColumnOptionsAdvBandedView.ParentView).OptionsAdvBandedView.GridBands;

            return(new CalculatedModelNodeList <IModelGridBand>(viewBands.GetItems <IModelGridBand>(band => band.GridBands)));
        }
Ejemplo n.º 4
0
 public void ApplyModel(IModelColumn columnInfo)
 {
     _model = (IModelColumnOptionsAdvBandedView)columnInfo;
     CreateModelSynchronizer().ApplyModel();
 }
Ejemplo n.º 5
0
        AdvBandedGridColumn FindBandedGridColumn(IModelColumnOptionsAdvBandedView modelColumn)
        {
            var bandedGridColumns = Control.GridView.Columns.OfType <AdvBandedGridColumn>();

            return(bandedGridColumns.FirstOrDefault(column => column.PropertyName == modelColumn.PropertyName));
        }
        private static bool GridBandMatch(IModelColumnOptionsAdvBandedView column, IModelNode gridBand)
        {
            var gridBandNode = column.GetValue <IModelNode>("GridBand");

            return(gridBandNode != null && gridBandNode.Id() == gridBand.Id());
        }