This is a migrated thread and some comments may be shown as answers.
Grid Edit Questions
1 Answer 16 Views
This is a migrated thread and some comments may be shown as answers.
Derek
Top achievements
Rank 1
Derek asked on 17 Nov 2012, 09:36 PM
When going into edit mode either by clicking the edit command button or double clicking the row, is it possible to keep the row highlighted a different color so it is obvious which row is being edited?

Also, is it possible to auto scroll the edit form into view.  For instance if I click the edit command button on the last visible row in the gridview, you then have to scroll down to find the edit form.  I would like to auto scroll to it for the user.

Thanks,
Derek

1 Answer, 1 is accepted

Sort by
0
Accepted
Jayesh Goyani
Top achievements
Rank 2
answered on 18 Nov 2012, 06:05 AM
Hello,


When going into edit mode either by clicking the edit command button or double clicking the row, is it possible to keep the row highlighted a different color so it is obvious which row is being edited?
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
      {
          if (e.Item is GridEditableItem && e.Item.IsInEditMode)
          {
              GridEditableItem item = e.Item as GridEditableItem;
              item.BackColor = System.Drawing.Color.Red;
          }
      }


Also, is it possible to auto scroll the edit form into view.  For instance if I click the edit command button on the last visible row in the gridview, you then have to scroll down to find the edit form.  I would like to auto scroll to it for the user.
<ClientSettings>   
           <Scrolling SaveScrollPosition="true" />
           </ClientSettings>


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