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

Drag row with image

3 Answers 57 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Koen
Top achievements
Rank 1
Koen asked on 14 Oct 2010, 01:58 PM

Is there a way to make a column with image draggable (when selecting the image with the mouse, and then start dragging)?

A normal GridBoundColumn is automatically draggable. But it doesn't seem to work well with other types of Columns.

I've tried a GridDragDropColumn (and increasing the image size, but unsuccessful). 

I also tried a GridButtonColumn and a GridTemplateColumn. 

Thanks,

Koen

3 Answers, 1 is accepted

Sort by
0
Marin
Telerik team
answered on 19 Oct 2010, 05:02 PM
Hi Koen,

The grid columns can be reorderd only by clicking on their headers. All standard types of columns can be dragged and dropped including the GridImageColumn (only by the headers). You can check it in this live demo by setting the AllowColumnsReorder and ReorderColumnsOnClient properties to true in the client settings for the grid. Additional information on column reordering can be found in this help article.

Greetings,
Marin
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
0
Koen
Top achievements
Rank 1
answered on 19 Oct 2010, 05:52 PM

I'm sorry, my explanation was not clear. 

I meant dragging rows, with a column of images.

I'm dragging a row from one grid to the other. When I use a GridBoundColumn, there is no problem.

It seems I cannot use any other types of columns to drag by row (with an image).

The image is simply not 'draggable' , but when I select the GridBoundColumn with it's data, and try to drag 

the row, there is no problem. 

0
Marin
Telerik team
answered on 20 Oct 2010, 03:11 PM
Hi Koen,

The case for dragging a row by clicking directly on the image is not supported for design reasons. In order to drag a row you may click anywhere directly on the tr element of the grid table. It does not depend on the column type but on the element inside the cell, i.e. if the image is smaller and you have padding between the cell border and the image you may drag the row clicking in this area.  

Sincerely yours,
Marin
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
Tags
Grid
Asked by
Koen
Top achievements
Rank 1
Answers by
Marin
Telerik team
Koen
Top achievements
Rank 1
Share this question
or