Dragging rows without a post back to the server.

T

Thomasa Gregg

I have been able to create a datagrid that is able to click and drag from
one row and drop it onto another to move it above the row dropped on. The
problem is it must do a post to the server and rebind the data. The number
of rows can be quite large and takes time. Here are the steps I am doing.

1. Get the row value on the ondragstart event.
2. Get the row value on the ondrop event.
3. Paste these values in an invisible field.
4. Force an on click event in JavaScript.
5. This on click event starts a stored proc that rearranges the data table
based on the row values.
6. I rebind the datagrid to the newly updated dataset.

What I want to do is rearrange the datagrid first without having to do a
post back. When the sorting is finished, have a procedure go through the
datagrid once, collect the new sort order and change the table at one time.

If anybody has any hints please give me a heads up.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top