Hi,
I'm currently experiencing a problem using the hierarquical grid.
Context:
Let me first give you the global scenario. I have a webpage with a div on which I load other “child-pages”, one of this subpages is where I render the datagrid, and the initial problem I was experiencing was that when I used the “GroupBy” feature, the area where the “Drag a column here to group by that column” appears was being rendered as many times as the sub-page was being loaded and therefore the datagrid initiated, so by the third time I opened the subpage, I would have three group-by panels. Assuming the problem was that I wasn’t disposing the datagrid properly, I attempted to call the destroy method of the grid but to no avail, since I received and error.
The problem is directly tied to the “GroupBy” feature, since if I remove that feature, the destroy method works perfectly.
Problem:
The resumed version of the problem is, when I use the feature “GroupBy” if I attempt to destroy the datagrid, I get the following error:
SCRIPT5022: cannot call methods on draggable prior to initialization; attempted to call method 'destroy'
Sample instructions:
I’ve produced a sample so you can reproduce the error, also and just to be sure, I’ve used the global js/css files on both the jquery-ui and infragistics just to make sure I wasn’t forgetting to include some dependency.
To use the sample just open the a.html page and press init, it should display the grid if all the dependencies were loaded correctly. Then if you press the destroy button, the error will occur and the grid won’t be removed.
Thanks in advance.
Best Regards,
Joel Campos
Hello Joel,
Thank you for your reply.
Glad that the issue has been resolved.
Please feel free to contact us if you have any additional questions regarding this matter.
Many Thanks.
The problem was the jquery-ui version i was using. I was using the 1.9.2 version, and the one you placed in your demo was the 1.8.18. After changing that in my page the problem was fixed.
Hi Joel,
Thank you for using IgniteUI!
Will you please try the sample that I`ve attached? It works fine on my machine and I cannot reproduce the issue that you are talking about.
If the issue is still reproduced don`t hesitate to ask.
Best regards,
Alexander Marinov
Associate Software Engineer in Test