Search
Grid.refresh Method
See Also
 






Repaints the grid contents.

Namespace: MindFusion.DataViews
File: Grid.js

 Syntax

JavaScript  Copy Code

function refresh ([selected])

 Parameters

selected
Optional.

Boolean. True to repaint only the selected rows.

 Example

The following code calles the refresh model of a Grid instance to update the grid data with values that were parsed from an URL:

JavaScript  Copy Code

function localize(locale, customEditor)
{
 var localeObj = new common.Locale(locale);
 localeObj.fromJson(JSON.stringify(data));
 localeObj.dateFormats.shortDate = localeObj.dateFormats.shortDate.replace("yy","yyyy");

 grid.model.columnMetaData(1).set("customEditor", {
         "autoComplete": true,
         "allowEmptyInput": true,
         "locale": localeObj
         });

        grid.refresh();
}

 See Also