I've been working on a drag and drop datagrid for a while now. It's compatible with the dndTree. IE use for browse window, many other things...

I don't like to give estimates but I've got all the things I mentioned here working. I want to add a few more nice touches before I release it tho. Things that make you smile. :)

Judah Frangipane
http://drumbeatinsight.com/dnddatagrid

JesterXL wrote:

function moveUp()
{
   var index = my_dg.selectedIndex;
   var item = my_dg.selectedItem;
   my_dg.removeItemAt(index);
   my_dg.addItemAt(index - 1, item);
}

function moveDown()
{
   var index = my_dg.selectedIndex;
   var item = my_dg.selectedItem;
   my_dg.removeItemAt(index);
   my_dg.addItemAt(index + 1, item);
}

Make 2 buttons; map them to those functions.

Or, put those 2 functions in a CellRenderer, and put 2 buttons in the cellrenderer to call those buttons; replace the DG with listOwner.

----- Original Message ----- From: "Sean Moran" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" <[email protected]>
Sent: Friday, October 07, 2005 12:48 AM
Subject: [Flashcoders] Datagrid rows - move up and down?



It would be nice to use a list or datagrid and allow users to sort
rows ... like a move up move down option on each row.

I am trying to find the best way to allow users to sort the order of
categories.

Ideas?

TIA

Sean

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to