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

Change update button text to Save

1 Answer 112 Views
Grid
This is a migrated thread and some comments may be shown as answers.
pankaj
Top achievements
Rank 1
pankaj asked on 04 Oct 2012, 11:14 AM
Please see attachment..
  Change update button text to Save

1 Answer, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 04 Oct 2012, 12:50 PM
Hello,

protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
   {
       if (e.Item.IsInEditMode)
       {
           if (e.Item is GridDataInsertItem)
           {
               GridEditableItem editItem = (GridEditableItem)e.Item;
               LinkButton InsertButton = (LinkButton)editItem.FindControl("PerformInsertButton");
               // Access Insert button here
               LinkButton CancelButton = (LinkButton)editItem.FindControl("CancelButton");
               // Access Cancel Button here
           }
           else
           {
               GridEditableItem editItem = (GridEditableItem)e.Item;
               LinkButton updateButton = (LinkButton)editItem.FindControl("UpdateButton");
               // Access Update button here
               LinkButton CancelUpdateButton = (LinkButton)editItem.FindControl("CancelButton");
               // Access Cancel button here
           }
       }
 
   }


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