示例#1
0
 public ActionResult ChangeEditModePartial(GridViewEditingMode editMode)
 {
     GridViewDemosHelper.EditMode = editMode;
     using (var data = new Provider())
     {
         return PartialView("EditCarPartial", data.CarRepository.GetAllCar());
     }
     //return PartialView("EditModesPartial", NorthwindDataProvider.GetEditableProducts());
 }
示例#2
0
 public ActionResult ChangeEditModePartial(GridViewEditingMode editMode)
 {
     GridViewDemosHelper.EditMode = editMode;
     using (var data = new Provider())
     {
         return(PartialView("EditCarPartial", data.CarRepository.GetAllCar()));
     }
     //return PartialView("EditModesPartial", NorthwindDataProvider.GetEditableProducts());
 }
示例#3
0
 public GridEditFormLayout(IEnumerable <GridEditLayoutColumn> displayColumns, Action <EditModeCommandLayoutItem> processLayout, int?columnCount = null, int emptyLayputItemCount = 0, int adaptiveModeSingleColumnWindowInnerWidth = 700, GridViewEditingMode editMode = GridViewEditingMode.PopupEditForm, FormLayoutAdaptivityMode adaptiveMode = FormLayoutAdaptivityMode.SingleColumnWindowLimit, GridViewBatchStartEditAction batchEditAction = GridViewBatchStartEditAction.Click, GridViewBatchEditMode batchEditMode = GridViewBatchEditMode.Cell, bool batchEditAllowRegularDataItemTemplate = true)
 {
     ColumnCount     = (!columnCount.HasValue) ? displayColumns.Where(c => c.IsVisible).Count() / 2: columnCount.Value;
     DisplayColumns  = displayColumns ?? new List <GridEditLayoutColumn>();
     ProcessLayout   = processLayout;
     EditMode        = editMode;
     AdaptiveMode    = adaptiveMode;
     BatchEditAction = batchEditAction;
     BatchEditMode   = batchEditMode;
     BatchEditAllowRegularDataItemTemplate = batchEditAllowRegularDataItemTemplate;
     EmptyLayputItemCount = emptyLayputItemCount;
     AdaptiveModeSingleColumnWindowInnerWidth = adaptiveModeSingleColumnWindowInnerWidth;
 }
示例#4
0
 public ActionResult ChangeEditModePartial(GridViewEditingMode editMode)
 {
     //GridViewEditingHelper.EditMode = editMode;
     return(PartialView("GridViewPartialView", NorthwindDataProvider.GetBranchs()));
 }