How to use dojo.ready or dojo/domReady! with EWM custom presentation?
Hello,
We've written a non-trivial custom EWM presentation for a customer which extends dijit._Widget and dijit._Templated and uses dojox.grid.DataGrid.
It has a lot of functionality which all works great except we have one issue which we are unable to solve. Sometimes the DataGrid does not render on the EWM work item tab. Sometimes we need to click the EWM work item refresh icon to get it to load. Sometimes it won't load at all - especially if go to a work item we had accessed prior to the current work item we are working on.
It seems like a classic case of needing dojo.ready or dojo/domReady! - but I cannot get these to help at all.
1 - Where in our JS code would be put the dojo.ready? I've surrounded the following code with dojo.ready but with no success:
grid.placeAt();
grid.startup();
2 - Can I use dojo/domReady! with code that is not loaded with AMD? Do I have to use AMD compatible code?
3 - Sometimes with firefox or chrome debugger I can that the grid (table) HTML code is there. But it is display=none
4 - Is any of this well-documented and I just haven't found it yet.
5 - I've looked at existing EWM JS code such as
- com.ibm.team.rtc.foundation.web.ui.views.tags.DecoratedTagWidget.js
- com.ibm.team.rtc.foundation.web.ui.views.tags.explorer.ItemBrowser.js
these do not use dojo.ready or dojo/domReady!
Any / all help is appreciated.
Thanks,
Kevin
2 answers
Comments
Please keep the post to one question thread.