Login Register

display

Display an array of object in datagrid

Hi gurus,

I am a newbie in dojo. What I need to do is pretty simple. I have a memory variable containing an array of objects like below:
[{attr0: "value00", attr1: "value01, attr2: "value02"},
{attr0: "value10", attr1: "value11", attr2: "value12"},
...
{attr0: "valuen0", attr2: "valuen1", attr2: "valuen2"}
]
I like to display it in a datagrid. How should I accomplish it? An example will be great. I am using dojo 1.2.x.

Any help will be greatly appreciated.

Jason Zou

Display and xml data fetching problems

Hi everybody,
I am coming here in hope for an answer to a situation I am having at with a Grid widget. I would like to use this widget to display xml data in an iframe. The iframe would contain the grid and a few buttons below the grid for UI actions.

I ran into three problems:
- first problem, solved: the xml file has a very weird way of referencing fields. Instead of :
* either <row><field1>value-of-field1</field1> (no attribute map needed)
* or <row field1="value-of-field1" field2="...></row> (attribute map with syntax "row.field1":"@field1")

Grid programmatically created IE problem (FF, Opera OK)

Hi,

I am creating a grid programmatically, it appears correctly in Firefox 2 and Opera 9.5, but I get this error in IE7: "Object doesn't support this property or method". This is the code:

// a grid view for the dimensions
var dimensionView = {
cells: [[
{name: 'Id', width: "8em", field: "id"},
{name: 'Name', width: "8em", field: "name"},
{name: 'Version', width: "7em", field: "version"},
{name: 'Agency Id', width: "7em", field: "agencyId"},
{name: 'Final', width: "7em", field: "isFinal"}
]]
};
dimensionLayout = [ dimensionView ];

Dropdown MenuItem border will not display

I can't get a border to show around a dijitMenuItem. I thought adding the following to the class ".tundra .dijitMenuItem" should work, am I mistaken?

BORDER: #386190 1px solid;

Grid data not loaded until mouse whell scroll

I need to use a grid on a page for displaying data after a query.
If i use the grid in an empty page it works fine, but i need to put it inside a contenpane that is inside a tabcontainer.
The problem is that the grid doesn't load the data, the rows are displayed only when i scroll down with the mouse whell.
Searching in the html code i noticed that the data isn't loaded at all, and not only hidden as i tought at first.

How can i force the loading of the data?
I'm searching to replicate what appens when i scroll down, it can be a solution, but i haven't found anything yet..

Syndicate content