Login Register

Grid (1.0)

grid_terms.gif

This widget is only available in 1.0. Grid is a DojoX project, but is documented here for user convenience.

Grids are familiar in the client/server development world. Basically a grid is a kind of mini spreadsheet, commonly used to display details on master-detail forms. From HTML terms, a grid is a "super-table" with its own scrollable viewport.

The Dojo grid is fast, robust, and very functional. In particular, grid has:

  • High performance drawing. Rows are rendered "lazily" as the user moves down the grid.
  • Addition or deletion of cells, rows and columns at will.
  • Rows made of multiple sub rows, acting as one selectable unit.
  • Summary rows.
  • Adjustable row and column spans to fit data into different rectangular shapes in the row.
  • Fixed rows and columns that stay still while the variable part of the grid scrolls.
  • A rich event structure, so you can hook into selection and scrolling. Styles can be set from an arbitrary function through the onStyle hook.
  • Support for "expandos" to show or hide detail.
  • Automatic even/odd row coloring
  • Ability to change the structure of rows on the fly.
  • Support for rich in-cell editing of text or non-text data. All Dijit form wdigets can be used in cells. Cells can be set to edit with a single-click.
  • Context menus settable for different cells
  • Support for selecting cells, rows or columns.
  • Option of automatic column sizing
  • Grid nesting, so a grid can be housed in the cell of an outer grid.

Good blog post about the grid

FYI: The SitePen guys have put a good Grid tutorial up at http://www.sitepen.com/blog/2007/11/06/simple-dojo-grids/

Dojox Grid Drag and Drop - No luck yet

Thanx for the link to the Grid tutorial but I still haven't had any luck with getting the drag and drop to work. I have been trying to figure it out and have experimented a bit. I know its probably a very simple thing but still haven't found the solution. Some pointers in the right direction would be welcome...

Regards,
Avinash Punekar
Guardbook Technologies

Dragging a Grid Row

Avinash,

Did you make any headway with able to drag a row from the Grid. We have some ideas and also playing with it. But I wanted to touch base with you to see how far did you get?

Thanks so much,

Best Regards,
Maan Mehta

Tutorial on using grid w/Rails

Just posted a little tutorial on using the Grid component with Rails: http://mysterycoder.blogspot.com/2007/11/dojo-grid-jester-rails-restful-...

is it Bi-directional?

dose the grid work in right-to-left mode?

grid is not bidi-ready in 1.0

some of the major rtl bugs have been fixed in trunk for 1.1, a few remain, but it's now usable. We hope to have this fully working in time for the 1.1 release.

i'm happy to hear that. i

i'm happy to hear that.

i appreciate your work.

can i put in grid paging

can we put in grid paging function?

Abhimanyu
Software Developer
Simplified Healthcare Informatics

can i put in grid paging

can we put in grid paging function?

and what is rowsPerPage="5" in grid

Abhimanyu
Software Developer
Simplified Healthcare Informatics

can dojo support subgrid upto 6 level

I wanted to know whether dojo 1.0 grid provide subgrid support upto 6 levels.
If not can any body have idea how we can achieve this.

Grid and ProgressBar

When I refresh my (large) grid I am getting question marks in the first row for about 5 seconds. Has anyone already tried to connect the "question mark/rendering time" with a ProgressBar?

I tried to update the ProgressBar using a script tag in each field. Unfortunately, these scripts are executed before the first question mark appears. Hence, the ProgressBar is already at 100% before the 3 seconds start.

How can I hook on the question mark time??

Ok, I used a VirtualGrid

Ok, I used a VirtualGrid with a get function.

Look forward to better

I like it,but it's too slowly.Look forward to better!