The FlexGrid has a client columnLayout property that gets or sets a JSON string containing a list of grid columns and their properties,
It doesn't support the datamap column.
This sample uses the client columnLayout property to persist the column layout to the browser's localStorage. FlexGrid also supports server-side saving\loading of column layout,
this is helpful in cases where column layout maybe saved in a storage\database to present different users with different view. Please refer "ColumnLayout" HowTo sample for the implementation.
To see how this works, follow these steps:
Resize some columns and drag some to new positions.
Click the "Save Column Layout" button to save the changes to local storage.
Refresh the page to restore the original layout.
Click the "Load Column Layout" button to restore the layout from local storage.
public partial class FlexGridController : Controller
public ActionResult ColumnLayout()
var model = Sale.GetData(500);