Wijmo UI for the Web
ensureControl Method
Determines if the wijgrid must load data from a linked data source before rendering.
Moves the column widget options to the wijgrid options and renders the wijgrid. Use this method when you need to re-render the wijgrid and reload remote data from the datasource.
Syntax
Javascript (Usage) 
var instance = new jQuery.wijmo.wijgrid();

// Parameters
var loadData; // Type:  bool

instance.ensureControl(loadData);
Javascript (Specification) 
function ensureControl( 
   loadData : bool
) : void;

Parameters

loadData
Determines if the wijgrid must load data from a linked data source before rendering.
Example
// Adds a new row to the viewModel and refreshes the wijgrid
var len = viewModel.data().length;
viewModel.data.push(new Person({ ID: len, Company: "New Company" + len, Name: "New Name" + len }));
$("#element").wijgrid("ensureControl", true);
Browser Compatibility
7
5
5

See Also

Reference

wijgrid type

 

 


© 2013 All Rights Reserved.

Send comments on this topic.