Skip to content
September 2, 2010 / phillipsb1

ARG! They did it again! They changed something without documenting it!

Ok, now that I’m back in the dojo business, I’ve had yet another taste of configuration management pain. For some reason, the DataGrid is back to using the old verbage. Don’t bother with editorClass, etc.

Here is my basic attempt at a grid definition. Code follows below…

var detail_view = {
cells: [[
{name:"Date Time", field: "STAMP", width: "90px",editable:true,

cellType:"dojox.grid.cells._Widget",
widgetClass: "dijit.form.ValidationTextBox"
},
{name:"workout", field: "WORKOUT_NAME", width: "100px"},
{name:"Rounds", field: "ROUNDS_METRIC", width: "65px",editable:true},
{name:"Time", field: "TIME_METRIC", width: "65px", editable:true},
{name:"Reps", field: "REP_METRIC", width: "65px", editable:true},
{name:"Weight", field: "WEIGHT_METRIC", width: "65px",editable:true},
{name:"Points", field: "POINTS_METRIC", width: "60px",editable:true},
{name:"Notes", field:"NOTES", width:"110px",editable:true}
]]
};
var detail_layout = [ detail_view ];

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.