JavaScript

{dialog.object}persistListColumnLayout Method

Syntax

{dialog.object}.persistListColumnLayout(ListId);

Arguments

ListIdstring

The List control to persist the layout.

Description

Persists the column layout for the specified List control.

{dialog.object}.persistListColumnLayout('LIST1');

Videos 

Saving and Restoring the List's Column Layout

The Show/hide list columns Defined Control can be used to give the user the ability to show, hide, and reorder columns in a List's layout. The layout can be saved, allowing you to later restore the layout the user created when they return to the application.

When the user changes the layout of the List columns, the onListColumnSelectorChanged event is triggered. This event can be used to persist the List's modified layout.

In this video, we show how to use the UX component's .persistListColumnLayout() and .restoreListColumnLayout() methods to save and restore the Column layout for a List control.

See Also