Hello,
I'm trying out the ignite ui controls. When copy pasting the nestedsplitter.html example from your site, i get the following javascript error when i try to select a node in the tree:
Uncaught Error: cannot call methods on igGrid prior to initialization; attempted to call method 'destroy'
I have tried with versions jquery >= 1.9. The version of the ignite ui im using is 13.1.20131.2143
Hi Longcat,
In order to check whether the igGrid has been initialized I would suggest using jQuery'sdatafunction as such:
if ($("#gridTarget").data("igGrid") !=null) {
//do something
}
Please note that this approach may also be applied to other components in the Ignite UI suite.
hey is this possible to call method after infragistic load
I have exactly the same problem. When I catch the rendered event and try to call igGridUpdating(X), I'm always getting "cannot call methods on igGridFiltering prior to initialization; attempted to call method X"
Example:
rendered: function(evt, ui) { var editing = grid.igGridUpdating("isEditing"); },
When I place a breakpoint at "var editing", I'm hitting the breakpoint and I'm always getting "Uncaught Error: cannot call methods on igGridUpdating prior to initialization; attempted to call method 'isEditing'"
dataSource is JSON data and showing properly in the grid. I can perfectly edit, delete, save,... But every call on igGridUpdating is failing.
Hey Edward,
All of the IgniteUI widgets have the rendered event, you can bind to it to make sure that the widget is loaded and rendered, before interacting with it.