[Dojo-interest] What do you use Grid for?
psvensson at gmail.com
Fri Dec 21 19:07:33 UTC 2007
Actually, I kind of agree with the original poster. I think that the new
grid is fabulous. Especially the dojox.data stuff, where the grid is
agnostic as to which data store (kind of) it read (and writes) from (to).
On the whole, though. What I really wanted, being in kind of a hurry, was to
wrap a Sortabeltable around a regular table which my client sprout from
their legacy backend.
What I went up doing was to find the newly minted dojox.data.HTMLTableStore,
which actually takes a present ergular table (but.. do check the source
first to see exactly how the table should look. It needs <thead>, et.c.
The big problem with the existing Grid is not its functionality, but to
provide a standard, no frills, SortableTable lookalike. Most users will need
Fortunately, I've come up with a possible solution :)
In principle it would be fairly easy (ok, moderately) to make a new dijit
which mixes in Grid and which creates its of HtmlTableStore, and with just
one div entry in the actual code, provide the same polished just-what-I-need
functionality as the old (fairly well working) SortableTable did.
I could do it now if I knew how to use .. hmm, actually I think I could do
it. Maybe :) Give me the week and I see what Ic an do. I'm kind of
flummoxed that you can't actually use existing dijit's inside the template
of a new dijit you're creating. In this particular case it will probably not
be needed, though.
Later, when the 'Nog runs out..
On Dec 21, 2007 7:42 PM, Dylan Schiemann <mail at dylans.org> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> The comments at http://dojotoolkit.org/2007/12/12/dojo-grid-1-1 might
> also prove to be useful.
> As far as I can tell, a huge number of questions right now are around
> grid and charting, making these features very popular.
> - -Dylan
> Daniel wrote:
> > Hello,
> > I'm reading the documentation about Grid. It looks mighty complicated
> > (then again, the docs always make things more complicated than they need
> > to be). I also noticed that packaging Grid into my build adds 80kb. So
> > I'm wondering what I get in return and whether maybe I should use a
> > plain regular table.
> > I see that the grid allows you to have two rows stuck together as a
> > single row ("subrows" vs "rows") and that it lets you have more than one
> > scroll bar. Neither feature is interesting to me.
> > Is there anything else?
> > Does anyone here use Grid? If you do, what do you use it for? What made
> > you choose Grid over building a regular table?
> > Best,
> > Daniel.
> > _______________________________________________
> > FAQ: http://dojotoolkit.org/support/faq
> > Book: http://dojotoolkit.org/docs/book
> > Forums: http://dojotoolkit.org/forum
> > Dojo-interest at dojotoolkit.org
> > http://dojotoolkit.org/mailman/listinfo/dojo-interest
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.7 (Darwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> -----END PGP SIGNATURE-----
> FAQ: http://dojotoolkit.org/support/faq
> Book: http://dojotoolkit.org/docs/book
> Forums: http://dojotoolkit.org/forum
> Dojo-interest at dojotoolkit.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Dojo-interest