problem while creating a grid in web UI
I'm able to find only the headers of the grid but not the data. Can some one suggest what the problem is? Did I miss any grid specific css files or any other dojo.require statements? Is it the case that the syntax of the data is wrong?
(function(){
var PlatformUI = net.jazz.ajax.ui.PlatformUI;
dojo.declare("com.example.capmgmt.web.ui.internal.page.ViewPlan", , {
//templateString: "<div><div>test </div></div>",
templatePath: dojo.moduleUrl("com.example.capmgmt.web", "ui/internal/page/templates/ViewPlan.html"),
//templateCssPath: dojo.moduleUrl("com.example.capmgmt.web", "ui/internal/page/templates/ViewPlan.css"),
postCreate: function(){
var ActionRegistry = PlatformUI.getWorkbench().getActionRegistry();
ActionRegistry.registerAction("com.example.capmgmt.web.view", this, "view");
this.initialize();
},
initialize: function(){
this.gridStructure = ]
}];
this.gridData = ,
];
console.log("printing grid data");
console.dir(this.gridData);
this.icemodel = new dojox.grid.data.Table(null,this.gridData);
console.log("printing model");
console.dir(this.icemodel);
this.grid = new dojox.Grid({
model: this.icemodel,
//clientSort: "true",
style: "width: 100em; height: 150em;background:lightgreen;",
structure: this.gridStructure
});
console.log("printing grid");
console.dir(this.grid);
this.grid.render();
this.grid.refresh();
}
(function(){
var PlatformUI = net.jazz.ajax.ui.PlatformUI;
dojo.declare("com.example.capmgmt.web.ui.internal.page.ViewPlan", , {
//templateString: "<div><div>test </div></div>",
templatePath: dojo.moduleUrl("com.example.capmgmt.web", "ui/internal/page/templates/ViewPlan.html"),
//templateCssPath: dojo.moduleUrl("com.example.capmgmt.web", "ui/internal/page/templates/ViewPlan.css"),
postCreate: function(){
var ActionRegistry = PlatformUI.getWorkbench().getActionRegistry();
ActionRegistry.registerAction("com.example.capmgmt.web.view", this, "view");
this.initialize();
},
initialize: function(){
this.gridStructure = ]
}];
this.gridData = ,
];
console.log("printing grid data");
console.dir(this.gridData);
this.icemodel = new dojox.grid.data.Table(null,this.gridData);
console.log("printing model");
console.dir(this.icemodel);
this.grid = new dojox.Grid({
model: this.icemodel,
//clientSort: "true",
style: "width: 100em; height: 150em;background:lightgreen;",
structure: this.gridStructure
});
console.log("printing grid");
console.dir(this.grid);
this.grid.render();
this.grid.refresh();
}