Can I prevent drag/drop between grids?

2 posts, 0 answers
  1. Paul Fountain
    Paul Fountain avatar
    10 posts
    Member since:
    Jan 2010

    Posted 11 May 2010 Link to this post

    I have an application with two RadGrids on the page together.  I have drag/drop functionality for each grid, which works fine.  However when dragging from one grid to the other, It creates the Javascript errors copied below.  On some environments, depending on the version/settings of the browser, it can cause a 404 error.  I have tried to solve this issue by adding code to my RowDrop event handler that ignores all drops from other grids.  But these errors are happening before the RowDrop is called.

    How can I prevent these errors without losing the ability to drag/drop within the same grid?

    Message: Sys.WebForms.PageRequestManagerServerErrorException: Cannot find a cell bound to column name 'Tasks'
    Line: 4723
    Char: 21
    Code: 0
    URI: http://localhost/Portal/ScriptResource.axd?d=fUJMFujfF39B_MM1dA7T_Ma2RfpS-GNQI3ziev5S6xl4tV7mAyNoKGpas918t9DDxFFDHGrlJR32pG3inQwrxiDv0KhaA9jpi0IMUfn4-f01&t=ffffffffec2d9970

  2. Dimo
    Dimo avatar
    8406 posts

    Posted 12 May 2010 Link to this post

    Hi Paul,

    The RowDrop client event cannot be cancelled, but the RowDropping event can. You can check in the RowDropping handler what is the destination of the dropped rows and cancel the event if it is another RadGrid.

    Here is an example which performs a similar check:

    Kind regards,
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top