Login Register

create

Programatically create and load data into grid from script

I need to create several grids with icon images, with and without links as well as text with links.
I have to make these grid programatically from scripts and load data from script also. Is it possible to use Dojo grid without dojo data store or model but use API to control everything, header creation, adding/delete rows etc.

Create BorderContainer programmatically

Hi,
I try create BorderContainer programmatically with this way:

document.body.appendChild(node); // necessary for tab contianer ???
node.style.cssText = "border: 2px solid black; width: 90%; height: 300px; padding: 10px;";
var bc = new dijit.layout.BorderContainer({design: "sidebar"},node);

var node = document.createElement("div");
document.body.appendChild(node);
node.style.cssText = "background-color: #b39b86; height: 100px;";
var widget = new dijit.layout.ContentPane({region: "top", splitter: "true"},node);
bc.addChild(widget);

Syndicate content