Hello,
I am using version 1.4.1 for quite some time now, and working on a complex system. I have a tab system with at least 3 tabs, each containing a grid. There seems to be a problem with the grid init, when it loads most of the times it gives this error:
TypeError: $.data(...) is undefined
var _6f8=$.data(jq[0],"datagrid").options; jquery.easyui.min.js (line 9607, col 9)
TypeError: $.data(...) is undefined
return $.data(jq[0],"datagrid").panel; jquery.....min.js (line 9618, col 7)
I interpret this as the DOM elements are not fully rendered by the browser but the init code of the grid is called (to early) or it may be related to the tabs, but it also happens on pages with a single tab and a single grid (just less often) If I add some setTimeout delay, then 90% of the time the bug disappears, but the slower the PC is, the more often this issue occurs. Or the more grids you open the same time, the more often this happens.
This doesn't crash the whole framework, if you close the tab and open it again most often it works, but it's pretty annoying/problematic.
I can reproduce this as: click on a link that opens the tab, and while the browser stalls a bit (rendering the elements) - meaning the tab appears, but it's content is not yet rendered, if I click on this tab, 99% I get this error (that the grid inside this tab won't initialize but give the above error). This doesn't mean that if you don't click on the tab, it won't happen, it will still happen but with less regularity.
any ideas/solutions?
Thank you.