This is a migrated thread and some comments may be shown as answers.

Disable PostBack on Dropped Item

4 Answers 91 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Shimon Dahan
Top achievements
Rank 1
Shimon Dahan asked on 15 Jan 2010, 09:29 AM
hi,

I use RadGrid to manipulate row promotion level. I Enabled the user to drag and drop rows to set the drraged item position.

I need to manipulate my datasbase when the dragging finish.

I wish to do this with javascript that invoke WCF service and pass the relevant parameters.

the problem is when the row dropped,  the page Posback to server and the user need to wait until the updating  to DB will finish.

I only need help to disable this postBack.

(When I use set_cancel method in the droppedEvent Nothing Changed and if I use it in the Drraging event the Dropped Event no Fired at all).

Thanks.
sorry about my English.. :)

shimon

4 Answers, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 19 Jan 2010, 09:22 AM
Hello Shimon,

You can cancel the postback by canceling within OnRowDropping handler. This will prevent from postback.

Sincerely yours,
Nikolay
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Shimon Dahan
Top achievements
Rank 1
answered on 19 Jan 2010, 09:53 AM
But When I use set_cancel method in the droppedEvent Nothing Changed and if I use it in the Drraging event the Dropped Event no Fired at all and I Cant Call the service with the relevant parameters(DropPosiiton)

thanks
0
Schlurk
Top achievements
Rank 2
answered on 19 Jan 2010, 09:48 PM
Are you subscribing to the OnNodeDropping or OnNodeDropped event? Since OnNodeDropped happens after a node has been dropped it would most likely seem as though canceling it does nothing. As Nikolay suggested I believe you need to cancel the OnNodeDropping event (not OnNodeDropped).
0
Flavien
Top achievements
Rank 1
answered on 12 Jul 2018, 11:29 AM

I had the same issue and it took a while before I understand the problem.

You are using RowDropped event instead of RowDropping (yes you can't cancel a postback once it already happend)

Tags
Grid
Asked by
Shimon Dahan
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Shimon Dahan
Top achievements
Rank 1
Schlurk
Top achievements
Rank 2
Flavien
Top achievements
Rank 1
Share this question
or