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

Row drag - drop event in javascript

3 Answers 155 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bhupendra
Top achievements
Rank 1
Bhupendra asked on 13 Dec 2011, 10:45 AM
hi ,
i am trying to write code for rad grid drag and drop feature, I have two grids and i want to drag and drop rows from both grids.
In demo's it is given that client and server side code is to be written for implementing this feature.
But I want to write whole code on client side , in javascript , is it possible to do ?

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 13 Dec 2011, 11:31 AM
Hello,

Check the following forum thread which discussed similar scenario.
Drag and Drop RadGrid in clientside

-Shinu.
0
Bhupendra
Top achievements
Rank 1
answered on 13 Dec 2011, 01:13 PM
HI SHINU ,

can u please provide any sample code for implemeting row drag and drop in rad grids, i want to write Rowdrop event in javascript only.
I fear that if row drop events fires a postback then all the data in javascript objects which would be lost.
Will OnRowDropping client side event of radgrid will allow postback ?

I am also getting this error

Specified argument was out of the range of valid values.
Parameter name: ItemHierarchicalIndex

when i include any javascript page with my aspx file

Thanks
0
Daniel
Telerik team
answered on 16 Dec 2011, 09:03 AM
Hello Bhupendra,

You should cancel the OnRowDropping event in order to stop the postback. Afterwards, you can update your database manually and then rebind the control.

Regards,
Daniel
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Grid
Asked by
Bhupendra
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Bhupendra
Top achievements
Rank 1
Daniel
Telerik team
Share this question
or