[]
FlexGrid supports resizing rows and columns beyond the visible grid bounds to provide greater flexibility when displaying and editing data layouts.
Use the allowResizing property to configure how resizing is performed. By default, resizing is restricted to the grid boundaries.
To enable resizing beyond the grid dimensions, set the allowResizing property to one of the following AllowResizing enumeration values:
Enumeration Value | Description |
|---|---|
| Resizes columns beyond the grid bounds by dragging column header edges. |
| Resizes columns beyond the grid bounds by dragging any cell edge. |
| Resizes rows beyond the grid bounds by dragging row header edges. |
| Resizes rows beyond the grid bounds by dragging any cell edge. |
| Resizes rows and columns beyond the grid bounds by dragging header edges. |
| Resizes rows and columns beyond the grid bounds by dragging any cell edge. |
The following example demonstrates how to set the allowResizing property to
BothAllCellsOverflow.
public ActionResult AllowResizing()
{
return View(Sales.GetData(10));
}@using MVCFlexGrid.Models
@using C1.Web.Mvc.Grid
@model IEnumerable<Sale>
@(Html.C1().FlexGrid<Sale>()
.AutoGenerateColumns(true)
.CssClass("grid")
.Bind(Model)
.AllowResizing(AllowResizing.BothAllCellsOverflow)
)