This is a migrated thread and some comments may be shown as answers.
Disable drag and drop or reorder in radgrid header
1 Answer 90 Views
This is a migrated thread and some comments may be shown as answers.
Krishnan LN
Top achievements
Rank 1
Krishnan LN asked on 10 Jan 2011, 08:23 AM
I have a Radgrid with checkbox template column for puropse of select all rows functionality. but right now whenever i hover through the header checkbox im getting the drag and drop cursor for drag & drop but i want thearrow cursor for that.
Any help is appreciated.

Regards,
Krishnan
Cognizant
Chennai

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 10 Jan 2011, 01:15 PM
Hello Krishnan,

You can achieve this by setting CSS class for the TableCell like below.

C#:
protected void grdEmail_ItemCreated(object sender, GridItemEventArgs e)
  {
      if (e.Item is GridHeaderItem)
      {
          GridHeaderItem item=(GridHeaderItem)e.Item;
          TableCell cell = item["ColumnUniqueName"] ;//CheckBox Column
          cell.CssClass = "MyCssClass";
      }
  }

CSS:
.MyCssClass
      {
          cursor: default !important;
          background-color:Gray !important;//set the color based on the skin
      }


Thanks,
Shinu.
Tags
Grid
Asked by
Krishnan LN
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Share this question
or