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

[Solved] Drag/Drop rows from table with template column

2 Answers 133 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 10 Nov 2009, 10:51 PM
  I have a page that supports dragging and dropping rows between two RadGrids.  Initially, this worked as expected, but I've now added a GridTemplateColumn to the tables, and now when I try to drag, it just selects the text within the column.  If I grab the row at the far left edge, it still selects the row and drags normally.

  Is there a way in this case to make the template column work the same way as other columns?

Thanks,
  Andrew

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 13 Nov 2009, 09:16 AM
Hello Andrew,

Due to performance considerations, RadGrid does not handle mouse events from template cells with <table>s inside them.

Please try to construct your template without tables or add an additional column (e.g. with an icon inside), which will be used for dragging. Sorry about the inconvenience.

Sincerely yours,
Dimo
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
Andrew
Top achievements
Rank 1
answered on 16 Nov 2009, 12:47 AM
I changed from <table> based layout to <div>/CSS and it works just as I had hoped.

Thanks very much for your help.

Andy
Tags
Grid
Asked by
Andrew
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Andrew
Top achievements
Rank 1
Share this question
or