Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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();

}

0 votes



11 answers

Permanent link
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

0 votes

1–15 items
page 2of 1 pagesof 2 pages

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,941

Question asked: Feb 18 '09, 7:07 a.m.

Question was seen: 13,393 times

Last updated: Feb 18 '09, 7:07 a.m.

Confirmation Cancel Confirm