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
  • 6279
    posted

    Hello,

    The problem you've encountered (again) has been solved in the latest Service Release (build #2011.1.2052 for jQuery 2011.1).

    Unfortunately the fix didn't make it into the RTM build (#2011.2.1031) for jQuery 2011.2 (I'm assuming that you are using it).

    The fix is already in the internal builds so as soon as the next Service Release comes up, you will be able to enjoy it.

    The Service Release itself will come up no sooner than the 15th of December.

    If there's anything else we can do to assist you until then, please let us know.

    Best Regards,

    Borislav

Reply Children