wijmo.grid Namespace > wijgrid type : ensureControl Method |
Javascript (Usage) | |
---|---|
$(function () { // Parameters var loadData; // Type: bool $(".selector").wijgrid("ensureControl", loadData); }); |
Javascript (Specification) | |
---|---|
function ensureControl( loadData : bool ) : void; |
// 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);