It's all about the answers!

Ask a question

problem while creating a grid in web UI


vinay reddy (171205) | asked Feb 18 '09, 7:07 a.m.
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();

}

11 answers



permanent link
Matthew Jarvis (2411) | answered Mar 05 '09, 12:08 p.m.
JAZZ DEVELOPER
Great. Glad you were able to track down the problem. Let me know if there is anything else I can do to help.

Matt Jarvis
Jazz Foundation, Web UI Frameworks

Your answer


Register or to post your answer.