Hi Isomorphic,
what's the suggested best practice for reordering databound ListGrids?
I have set setCanReorderRecords(true) and I have a position column of type int.
The reordering works fine in the client, but no DML is issued by the server.
A forumsearch for setCanReorderRecords made me guess that I'll have to use a RecordDropHandler and edit the records of the ListGrid there.
This is a very ugly thing to do as the changed records are sent one by one after a call to saveAllEdits(), so no (deferred) unique constraint is possible in the DB.
Does ListGrid somehow support the DML generation out of the box or do I have to write a DMI class, most likely calling some Stored Procedure?
Thanks,
Blama
what's the suggested best practice for reordering databound ListGrids?
I have set setCanReorderRecords(true) and I have a position column of type int.
The reordering works fine in the client, but no DML is issued by the server.
A forumsearch for setCanReorderRecords made me guess that I'll have to use a RecordDropHandler and edit the records of the ListGrid there.
This is a very ugly thing to do as the changed records are sent one by one after a call to saveAllEdits(), so no (deferred) unique constraint is possible in the DB.
Does ListGrid somehow support the DML generation out of the box or do I have to write a DMI class, most likely calling some Stored Procedure?
Thanks,
Blama
Comment