It's all about the answers!

Ask a question

problem while creating a grid in web UI


vinay reddy (1711205) | 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 Feb 20 '09, 12:58 p.m.
JAZZ DEVELOPER
Vinay,

Are you seeing any errors in the browser console? If there are no errors in the browser console, you could determine if there is a CSS problem by inspecting the DOM using Firebug.

If you are missing a dojo.require, I would expect to see some errors in the browser console. If you are missing some CSS, I would expect all your data to exist in the DOM... It just might not be displayed correctly (or at all) if you're missing CSS.

Matt Jarvis
Jazz Foundation, Web UI Frameworks

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.