Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1845
addRow method doesn't work
posted

I'm trying to use the igGridUpdating addRow method, but it silently fails.

Here's my code:

$('#DocumentPrintOrderGrid').igGridUpdating("addRow", {'Fk_tdoc_title' : 'word up!'});

Here's my grid definition:

$(function () {
$('#DocumentPrintOrderGrid').igGrid({
dataSource: '_DocumentsPrintOrder_Grid',
autoGenerateColumns: false,
autoGenerateLayouts: false,
responseDataKey: 'Records',
generateCompactJSONResponse: false,
columns: [{
headerText: '<span style=\'text-align: left; display:block;\'>Document Print Order<span>',
key: 'Fk_tdoc_title',
width: '100px',
hidden: false,
dataType: 'string',
formatter: null,
template: '<span style=\'text-align: left; display:block;\'>${Fk_tdoc_title}</span>'
}],
features: [{
sortUrlKey: 'sort',
sortUrlKeyAscValue: 'asc',
sortUrlKeyDescValue: 'desc',
name: 'Sorting',
mode: 'single',
type: 'local'
}, {
name: 'Selection',
mode: 'row',
multipleSelection: false
}, {
name: 'Resizing'
}, {
name: 'Selection',
multipleSelection: true,
mode: 'row'
}],
jQueryTemplating: false,
autoAdjustHeight: false,
width: '100%',
initialDataBindDepth: 0,
renderCheckboxes: true,
localSchemaTransform: false
});
});
selectionList - DocumentPrintOrder ');

Parents Reply Children