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

GridDragDropColumn image visible on row edit

1 Answer 82 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Alex Occhipinti
Top achievements
Rank 1
Alex Occhipinti asked on 26 Apr 2012, 09:32 PM
Probably something very simple, but I can't seem to find it.

I have a DragDropColumn and when the row is in edit mode the image is still visible.  Any way to make the column "ReadOnly"?

1 Answer, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 27 Apr 2012, 07:10 AM
Hello Alex,


<telerik:GridDragDropColumn UniqueName="dnd"></telerik:GridDragDropColumn>

protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
    {
 
        if (e.Item is GridEditableItem && e.Item.IsInEditMode)
        {
            GridEditableItem item = e.Item as GridEditableItem;
           (item["dnd"].Controls[0] as WebControl).Style.Add("display","none");
        }
}


Thanks,
Jayesh Goyani
Tags
Grid
Asked by
Alex Occhipinti
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Share this question
or