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

Drag and drop column in client side binding Radgrid

5 Answers 993 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dhamodharan
Top achievements
Rank 1
Dhamodharan asked on 15 Aug 2013, 03:19 PM
Hi,
I am binding radgrid in client side. i am assigned the Edit command column, Drag and Drop column in that grid. On Databinding the Edit Command column is visit but Drag and drop control is not visible. I need a support to over come this issue.






Thanks

5 Answers, 1 is accepted

Sort by
0
Angel Petrov
Telerik team
answered on 20 Aug 2013, 11:21 AM
Hello Dhamodharan,

I have to say that the behavior experienced is expected. The current implementation of the grid does not support data-editing and drag and drop when client-side data-binding is used. If however you want to implement drag and drop note that you should cancel the firing of the server OnRowDrop event of the grid and handle the dropping only on the client.

Regards,
Angel Petrov
Telerik
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 the blog feed now.
0
Dhamodharan
Top achievements
Rank 1
answered on 16 Sep 2013, 01:56 AM
Hi Angel,
               Thanks for reply. I want to implement the drag and drop in client side. can you please provide me an example for my requirement.

how to cancel initinset, Edit, delete commands on client side for client side binded radgrid.








Thanks
0
Angel Petrov
Telerik team
answered on 18 Sep 2013, 03:51 PM
Hi Dhamodharan,

In order to prevent the postback once a row is dropped(or another action which will cause a postback is invoked) you can subscribe to the OnCommand event of the grid and cancel the command:
function OnGridCommand(sender,args) {
            if (args.get_commandName() === "RowDropped") {
                args.set_cancel(true);
            }
        }

Note that building such an example is time-consuming and is not currently supported. It is a developers responsibility to handle such cases.

Regards,
Angel Petrov
Telerik
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 the blog feed now.
0
Dhamodharan
Top achievements
Rank 1
answered on 19 Sep 2013, 06:44 AM
Hi angel,
        The drag and drag column is not visible on client side binding radgrid.
       





Thanks
0
Angel Petrov
Telerik team
answered on 23 Sep 2013, 02:56 PM
Hello Dhamodharan,

Indeed your observations are correct since the drag and drop functionality is not supported with client-side data-binding RadGrid suppresses the creation of the GridDragDropColumn. It will be initialized only when server-side binding is used.

Regards,
Angel Petrov
Telerik
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 the blog feed now.
Tags
Grid
Asked by
Dhamodharan
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
Dhamodharan
Top achievements
Rank 1
Share this question
or