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
130
Destroy method still returns grid/Databind issue
posted

Hey there!

I am having an issue where calling dataBind is hanging up and never completing. Eventually the browser (have tried in Chrome and IE) gives me the "Stop running this script?" dialog.

I am attempting to rebind like so:

$("#mprGrid").igGrid("dataSourceObject", mprGridDS);

$("#mprGrid").igGrid("dataBind");

 

To work around this I decided to try and just recreate the grid. So I altered my function like so:

function LoadGrid(mprGridDS) {        

        $("#mprGrid").igGrid("destroy");

        var isCreated = $("#mprGrid").data('igGrid');        

        if (!isCreated) {

            //create grid

        }        

    }

However calling destroy does remove the initial grid from the page but $("#mprGrid").data('igGrid'); still returns an object so I can't recreate the grid (condition isn't met).

Any insight? I really appreciate your help!

 

Parents Reply Children
No Data