I am currently trying to load a popup gridview from a double click event of a cell in another gridview. I am using a very simple function and I keep getting the grid does not support the index of. Any idea where this is going wrong? I check the json string right before it is returns and it has valid values and the correct syntax.
$ctrl.on(‘celldoubleclick’, function (event) {
var column = args.datafield;
// condition follows
if (column === “Attributes”) {
$(LoadAttributesGridview())
//create the popup
$(“#popup”).jqxWindow();
// show the popup window.
$(“#popup”).jqxWindow(‘open’);
// initialize the popup window and buttons.
$(“#popup”).jqxWindow({
width: 500, height: 300, resizable: true, isModal: false, autoOpen: false
});
}
});
function LoadAttributesGridview() {
var $ctrl = $(“#AttributesGrid”)
$ctrl.jqxGrid({
columns: [
{ text: ‘A’, datafield: ‘OptionKey’, width: 200 },
{ text: B’, datafield: ‘OptionName’, width: 300 },
]
});
}