我正在与 Dojo 合作,我有一个小要求。我正在使用商店来创建内存。我有一个硬编码列表,因此我可以将此列表设置为 Dojo 数据网格存储,从而执行一些 rowclick 功能。我的问题是我无法设置商店,并且出现错误,
this.headerContentNode.firstChild is null
. 请问有人可以帮我吗?
代码片段....
postCreate : function () {
//publist, sublist etc
this._handleLogDetails();
},
//methods...
_handleLogDetails : function(){
alert("hello...h..");
var theGreatestTeamOfAllTime = [ {
"jobName":"12",
"jobId":"Jim Kelly",
"status":"QB",
"timeStamp":"0"
},
{
"jobName":"1",
"jobId":" Kelly",
"status":"B",
"timeStamp":"10"
}
];
var clientJobStore = this.jobModel.getLogStore();
clientJobStore.setData(theGreatestTeamOfAllTime);
var thisData = new ObjectStore({objectStore: clientJobStore});
this.dapJobStatusGrid1.setStore(thisData); // attach point of dojo data grid, getting an error at this point...