jQWidgets Forums

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Problem with the destroy method Problem with the destroy method #2220

    xrxss15
    Member

    Ah, I didn’t realize that you are destroying the node itself.

    Thanks for clarifying.

    Regards,
    xrxss15

    in reply to: Problem with the destroy method Problem with the destroy method #2218

    xrxss15
    Member

    Hi Peter,

    i’ve downloaded the new version and adjusted my code to your changes. I can confirm that the destroy method doesn’t break the slider anymore.

    But I am still having an issue with the destroy method. I can’t re-create the grid in the same node after destroying it:
    $(document).ready
    ( function()
    {
    var jqxTheme = getTheme();

    $(‘#slider’).jqxSlider({ theme: jqxTheme, mode: ‘fixed’, tooltip: true });

    var columns = [{ text: ‘one’, datafield: ‘one’, width: 100 }, { text: ‘two’, datafield: ‘two’, width: 100 }];
    $(“#list”).jqxGrid({ source: { data: [{one:’ ‘, two: ‘ ‘}], datatype: ‘json’ }, columns: columns });

    $(“#list”).jqxGrid(‘destroy’);
    $(“#list”).jqxGrid({ source: { data: [{one:’ ‘, two: ‘ ‘}], datatype: ‘json’ }, columns: columns });
    }
    )

    Regards,
    xrxss15

    in reply to: Problem with the destroy method Problem with the destroy method #2177

    xrxss15
    Member

    Hi Peter,

    I will check the new version as soon as it is available.

    Thanks for suggesting a workaround. I am using $(“#list”).remove() already, but I am wondering if it will free up all the memory.

    Regards,
    xrxss15

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