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

Change Insert button text

2 Answers 202 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kien Lim
Top achievements
Rank 1
Kien Lim asked on 07 Jun 2011, 07:12 AM
Hi,

I would like to change the name "Insert" to "Add". How can I achieve this? Thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 07 Jun 2011, 08:46 AM
Hello Kien,

Try the following code snippet to change the text "Insert" by attaching ItemCreated event to your RadGrid. Hope this helps you.

C#:
protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
  {
      if (e.Item is GridEditFormInsertItem)
      {
              LinkButton insertBtn = (LinkButton)e.Item.FindControl("PerformInsertButton");
              insertBtn.Text = "Add";
      }
  }

Thanks,
Princy.
0
Kien Lim
Top achievements
Rank 1
answered on 07 Jun 2011, 09:18 AM
Thanks Princy. It works
Tags
Grid
Asked by
Kien Lim
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Kien Lim
Top achievements
Rank 1
Share this question
or