i wrote a drag and drop row script
i needed a row selection and move script.
you can download it from http://webmail.mbn.ch/table/dragdroprows.js
or try it from http://webmail.mbn.ch/table/musel.htm
save it and include the script into the gridfile.
you must provide a global var var gridasGridObj = obj;
pointing to the grid Object.
I kept the code straight, separating event-handling from grid-handling
I normally programm in PHP, so i was not able to build the functions in the grid object (uff, i tried but gave up).
how to use it:
select a few rows (if multiselection is enabled - otherwise only one row)
go to the row index and drag the selected to the desired position (again the row index)
the ctrl-key toggle between copy and move
I tested it with "multiple selection.htm" and "paging1.htm",
the paging need a call of dragdropAttach(); after refreshing the grid
So i hope that somebody can use the code or build the functionality into the grid.
(i think it is not a good idea to insert the whole code here , but maybe if someone tested it and found all these nasty bugs, hidden somewere)
Greetings
you can download it from http://webmail.mbn.ch/table/dragdroprows.js
or try it from http://webmail.mbn.ch/table/musel.htm
save it and include the script into the gridfile.
you must provide a global var var gridasGridObj = obj;
pointing to the grid Object.
I kept the code straight, separating event-handling from grid-handling
I normally programm in PHP, so i was not able to build the functions in the grid object (uff, i tried but gave up).
how to use it:
select a few rows (if multiselection is enabled - otherwise only one row)
go to the row index and drag the selected to the desired position (again the row index)
the ctrl-key toggle between copy and move
I tested it with "multiple selection.htm" and "paging1.htm",
the paging need a call of dragdropAttach(); after refreshing the grid
So i hope that somebody can use the code or build the functionality into the grid.
(i think it is not a good idea to insert the whole code here , but maybe if someone tested it and found all these nasty bugs, hidden somewere)
Greetings
Andres Obrero from Winterthur Switzerland
March 11,