Hello,
I need to select my grid widget after it has been created and update the datastore with some sorting parameters. I'm running into the very simple problem that I can't do the following
var grid = dijit.byId("grid");
grid.model.store.comparatorMap = {};
grid.model.store.comparatorMap['rid'] = sortNumeric;
If I specific the comparatorMap at just after using the grid constructor, there is no problem.
I'm creating the grid programmatic attaching to a div called gridContainer.
Using firebug I see the following:
div role="wairole:grid" hidefocus="hidefocus" class="dojoxGrid" tabindex="0" id="grid" widgetid="grid" style="width: 949px; -moz-user-select: none;"
Here is the error message from firebug when I try to use the code above:
grid is undefined
[Break on this error] grid.model.store.comparatorMap = {};
