PDA

View Full Version : Drag and drop Yahoo! Mail style



jack.slocum
21 Sep 2006, 2:04 AM
It's official, built in drag and drop support will be part of this release.

Here's some screenshots:

http://www.jackslocum.com/blog/images/grid-dd1.gif

http://www.jackslocum.com/blog/images/grid-dd2.gif

Jack

Animal
21 Sep 2006, 3:50 AM
Love the paging interface - this is going to work so well with my Hiberbnate HQL lister DWR object!

"Next Page"/"Prev Page" buttons pulling in 20 rows at a time are a thing of the past!

micktwomey
21 Sep 2006, 5:59 AM
Pretty sweet. Will the drag and drop support ordering of items too? i.e. drag something around in the grid to change it's position in the grid.

I second the paging comment too, really looking forward to that :)

jack.slocum
21 Sep 2006, 11:25 AM
The drag and drop support is like working with any YUI drag drop object. What you implement with that is for you to decide.

Drag and drop sorting of rows is a good example of using drag and drop. I've been thinking about what examples I will do with this release and that's a good one.

I'm glad you like the paging interface. I don't think scrollbar based loading is going to make it into this build. I've implemented it partially but there are just too many things to override to support sparse row population. I will have to create a new GridView for "virtual" mode. I don't think I will have time to do that in this release. It was slated for the next release anyway, but I really wanted to get it into this one. :(

Jack

devol
24 Sep 2006, 12:19 AM
Did fixed column support make it in as well?

jack.slocum
24 Sep 2006, 12:59 AM
It's paired with reordering columns and both are high priority for the following release.

Most of the time on this release was spent on editing, the new flexible loading/paging code built into the XML and JSON data models and the redesigned layout/rendering code.

The 3rd one (layout redesign) was needed for reordering and fixed columns and should make them both easier to implement.