new items (comet) & the grid

View: New views
1 Messages — Rating Filter:   Alert me  

new items (comet) & the grid

by Dylan Tynan-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

In several of the articles that are out there about restchannels (or other comet technologies), the dojo grid is often used as an example of a widget that is comet-aware.  I've been experimenting with that combination and have noticed that the grid doesn't do a very good job of handling new items.  It always appends them as the last items in the grid's display.  Obviously, this also  means that any sort that has already been performed on the grid is ignored -- which, results in the grid now displaying incorrect ordering (at least until you sort again).

That behavior was noticed a while back by someone (in a non-Comet context, but basically the same thing).  A ticket was opened, then recently closed as wontfix (http://bugs.dojotoolkit.org/ticket/7854).  I guess I'd just like to my vote in that this seems like a needed fix to me --- either allow one to specify an insertion point (as in 7854), or at least at an option for the grid to resort when newItems have arrived.

If articles are going to point to the grid as a good example of restchannels (or other comet stuff), then it seems like it should work pretty well out-of-the-box, without the need for some crafty programming.

Thanks,
Dylan Tynan

_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest@...
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest