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

Changing Update text to Save and Edit text to Open

1 Answer 29 Views
Grid
This is a migrated thread and some comments may be shown as answers.
L
Top achievements
Rank 1
L asked on 06 Jul 2010, 02:34 PM
hi

I have a Grid that is using inPlace editing mode. When i tried changing the Edit text to Open and Update text to Save in the mastertableview. It didn't get change. How should i go about it? Thanks

1 Answer, 1 is accepted

Sort by
0
Accepted
IT
Top achievements
Rank 2
answered on 06 Jul 2010, 06:54 PM
Here is a C# answer.  Be sure to set OnColumnCreated = "RadGrid1_ColumnCreated" in the page definition of your grid.  (This is assuming that you've named your grid, "RadGrid1".)

protected void RadGrid1_ColumnCreated(object sender, GridColumnCreatedEventArgs e)     
{       
   if (((GridColumn)e.Column).UniqueName == "AutoGeneratedEditColumn")       
   {       
      GridEditCommandColumn eCol = (GridEditCommandColumn)e.Column;       
      eCol.UpdateText = "Save";       
      eCol.EditText = "Open";     
   }     
}     
 


Enjoy!
Sundance
Tags
Grid
Asked by
L
Top achievements
Rank 1
Answers by
IT
Top achievements
Rank 2
Share this question
or