jQWidgets Forums

jQuery UI Widgets Forums Grid Grid inside a Grid Index Error

This topic contains 2 replies, has 2 voices, and was last updated by  Nadezhda 10 years, 8 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Grid inside a Grid Index Error #59873

    ARC2014
    Participant

    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 },

    ]
    });
    }

    Grid inside a Grid Index Error #59874

    ARC2014
    Participant

    The call in the condition should be LoadAttributesGridview() – Sorry, I should have edited before posting.

    Grid inside a Grid Index Error #59891

    Nadezhda
    Participant

    Hello ARC2014,

    You can call “open” method instead of initialized the widget every time.
    Please, find the following example which shows how to initialize widgets in the jqxWindow’s content http://jsfiddle.net/jqwidgets/STCPV/.

    Best Regards,
    Nadezhda

    jQWidgets team
    http://www.jqwidgets.com/

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.