Dragging rows without a post back to the server.

Discussion in 'ASP .Net Datagrid Control' started by Thomasa Gregg, Jul 2, 2004.

  1. 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
     
    Thomasa Gregg, Jul 2, 2004
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Joby
    Replies:
    0
    Views:
    1,662
  2. =?Utf-8?B?QWxla3NhbmRhciBBbmRqZWxrb3ZpYw==?=

    Refresh data grid control without (post back)

    =?Utf-8?B?QWxla3NhbmRhciBBbmRqZWxrb3ZpYw==?=, May 24, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    1,138
    mortb
    May 24, 2004
  3. srinivas
    Replies:
    1
    Views:
    617
    Eliyahu Goldin
    Jan 17, 2007
  4. =?Utf-8?B?Z29yaWxsYQ==?=
    Replies:
    1
    Views:
    818
    Masudur
    May 25, 2007
  5. Paul
    Replies:
    2
    Views:
    279
Loading...

Share This Page