I am trying to resize the columns of my iggrid dynamically, after initialize the grid with autogenerate feature.
right now the feature is initialize with the grid, i am able to drag and resize columns, and the corresponding events are fired, but when i do this command for setting the with on an specific column, $('#candidate-list-static').igGrid("resize", 0, 50);, i get this error (Error: cannot call methods on igGridResizing prior to initialization; attempted to call method 'resize').
i do not know what to do next, someone could help with this please?.
Thanks
Hello Juan,
The "resize" is a method of the igGridResizing widget, so you need to execute is as follows:
$('#candidate-list-static').igGridResizing("resize", 0, 50);
Please try it and let me know the result.
i am still having an error, different one but the grid is still not functioning.
(Error: cannot call methods on igGridResizing prior to initialization; attempted to call method 'resize')
When initializing the grid in a <div> element similar errors are received. If this is the case please initialize the grid in a <table> element.
Otherwise I would need more details to investigate this. Could you clarify at what time/event you are trying to call the resize method ? Do you happen to see this error if you call another method also ? It will be highly appreciated if you could provide a sample that demonstrates this issue or share your code.
Looking forward to hearing from you.
I was having a similar issue, changed from a <div> to a <table> and it now works.