I saw examples of how to add cell types using 'programmatic'
definition of layout structure
for example:
{ name: 'Priority', field: 'col1', styles: 'text-align: center;', type: dojox.grid.cells.Select, options:{ ["normal", "note", "important"]},
However, I cannot figure out how to make a cell, for example to be
dojox.grid.cells.Select
from within a mark up specification of a cell
<th field="col1" type='dojox.grid.cells.Select'
options="["normal", "note", "important"]}"
>Priority</th>
options="["normal", "note", "important"]}"
>Priority</th>
does not seem to work.

maybe...
Not sure which version you're using, exactly, but over in test_data_grid_edit.html ( http://archive.dojotoolkit.org/nightly/checkout/dojox/grid/tests/ ), there appears to be syntax like you're wanting to use....
Type
addendum...
like so (but with angle brackets of course):
th field="type" width="auto" cellType="dojox.grid.cells.Select" options="country,city,continent" editable="true"
thank you, that's what I
thank you, that's what I needed
Could not have guess that it was 'cellType' not 'type' :-)
I wonder if I missed it in my searches -- but I did not see
the 'api' doc for 1.2 DataGrid anywere... probably because
it is not out yet.
thanks again
example
You'll find an example at the new Grid 1.2 documentation page: http://docs.dojocampus.org/dojox/grid
Please pitch in with your help and let us create a better documentation!
see also: http://docs.dojocampus.org/welcome
Marcus
------------
http://www.dojotoolkit-forum.de
> You'll find an example at
> You'll find an example at the new Grid 1.2 documentation page: http://docs.dojocampus.org/dojox/grid
Marcus, the example at http://docs.dojocampus.org/dojox/grid#programmatically-creating-a-datagr... does not show anything to me when I click on "Preview" (either with MSIE 7 or with FF3).
It should work now
Hi enzo,
the example was broken. It should work now.
Marcus
------------
http://www.dojotoolkit-forum.de
It should work now
> the example was broken. It should work now.
Almost :-) If, using MSIE (either 6 or 7), you try to sort the grid by clicking on the header of any column, the grid's body disappears... Incidentally, I had the same problem in an application I'm developing, and arrived to this forum googling for help...
Inspecting the DOM through the "Debugbar" debugger (www.debugbar.com) I noticed that after the collapse of the grid the style of one of the component DOM elements, wth class dojoxGridContent, has "HEIGHT: 0px":
<DIV class=dojoxGridContent hideFocus style="WIDTH: 379px; HEIGHT: 0px" _zipIdx="57" dojoAttachPoint="contentNode" unselectable="on">
With FF3, and/or using a previous version of Dojo (a nightly build dated 19 July 2008), this does not happen: the HEIGHT attribute remains set to a few px, and the grid remains visible (and gets sorted).
All in all, it smells like a bug in Dojo 1.2b1... I think I'll file a ticket on bugs.dojotoolkit.org .
Enzo
Seems to be a Grid error
Yes, this seems to be a Grid error.
Unfortunately you will find 39 other reported Grid errors at this report.
Not sure, whether and/or when the errors will be fixed from the Grid developers or other members of the community.
Marcus
------------
http://www.dojotoolkit-forum.de
...and what's worse it's back from the (supposed) grave...
I discovered that the same problem had been reported in http://trac.dojotoolkit.org/ticket/7554 , so I re-opened the ticket.
Yes, the Dojo team should definitely spend more time fixing bugs and documenting the API (thank you very much for your efforts in this area, by the way!) than introducing cool new features: or else, the project will end up looking like MS-Windows...
BTW, I've noticed another problem new to 1.2b1: if the associated datastore is closed and a new one is attached invoking the setStore() method, a few empty rows remain present at the end of the grid. I haven't yet prepared a test case, so I'm not filing a ticket at this point.
Ah, cool...
Marcus, I was wondering why the updates on dojocampus had slowed down. Good to see a new docs page (thanks for pointing that out).
vlad_dojo, glad that helped.
Dylan Tynan
(not associated with dojo group, just a fan trying to learn it)
We need more help from you all
I think, the beginning is the hardest. But if you look at the forums, you're able to see the same questions again and again. This is a clear sign, that the current documentation is really not the best. Therefore we have decided, to start with a new Wiki. The idea is, to offer more examples, more explanations of simple things - especially for starters. The new Wiki will replace the old documentation (the Wiki will move from dojocampus.org to dojotoolkit.org).
You can see, there are already some contributors. But we need more help from you all. If everyone donates a few minutes in order to improve the documentation, then we will all benefit from a broader knowledge base.
Marcus
------------
http://www.dojotoolkit-forum.de