public ActionResult ChangeEditModePartial(GridViewEditingMode editMode) { GridViewDemosHelper.EditMode = editMode; using (var data = new Provider()) { return PartialView("EditCarPartial", data.CarRepository.GetAllCar()); } //return PartialView("EditModesPartial", NorthwindDataProvider.GetEditableProducts()); }
public ActionResult ChangeEditModePartial(GridViewEditingMode editMode) { GridViewDemosHelper.EditMode = editMode; using (var data = new Provider()) { return(PartialView("EditCarPartial", data.CarRepository.GetAllCar())); } //return PartialView("EditModesPartial", NorthwindDataProvider.GetEditableProducts()); }
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; }
public ActionResult ChangeEditModePartial(GridViewEditingMode editMode) { //GridViewEditingHelper.EditMode = editMode; return(PartialView("GridViewPartialView", NorthwindDataProvider.GetBranchs())); }