BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
var cached; //Local variable to store selected indexes
$("#Grid").ejGrid({
dataSource: window.gridData,
selectionType: 'multiple',
contextMenuSettings: { enableContextMenu: true },
. . . . .
contextOpen: function () {
if (cache)
this.selectRows(cache); //Select after context menu open
},
rowSelecting: function (args) {
//Store the selected indexes which can be selected after context opened.
if (this.selectedRowsIndexes.length > 1) {
cache = this.selectedRowsIndexes.slice(0);
cache.push(args.rowIndex);
}
else {
cache = null;
}
}
});
|