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
170
igtbl_getGridById returning 'undefined'
posted

I have a page that works with Ajax.

When the page is done loading I need to make some operations over the grid. I'm using the PageLoad event from Ajax to trigger the operations.

It not always works fine. Sometimes when the PageLoad is triggered the igbl_getGridById returns 'undefined' or null.

It seems like the function igtbl_initGrid has not yet been triggered when the PageLoad is.

Do you have any idea of why igtbl_getGridById would return 'undefined' ? 

  • 4555
    posted

    Hi,

    This should work provided you have the grid's name passed correctly, and the code you is in the right event.  Please add the code to the Grid's InitializeLayout event on the client side. If the issue is not resolved then please paste the markup of the page to the forum post and I will test it.

    Magued