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

Change "Add new record" text

7 Answers 1398 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ramjet
Top achievements
Rank 1
Ramjet asked on 30 Apr 2010, 07:32 PM
OK I admit not a big deal here but the users are asking if I could change the text on a RadGrid "Add neew record" to Add New Lender" or whatever. I am not seeing right off where to do so but I also frequently get lost in the sun-sub levels of the RadGrid.


TIA
JB

7 Answers, 1 is accepted

Sort by
0
Ramjet
Top achievements
Rank 1
answered on 30 Apr 2010, 07:41 PM
I got it! I can use a RadToolBar and give myself a few more options as well!!!

I give myself 100 points.
0
Daniel
Telerik team
answered on 30 Apr 2010, 09:55 PM
Hello John,

You can change the desired text this way:
<MasterTableView ...
    <CommandItemSettings AddNewRecordText="Add New Lender" />

Localizing the Command item

Kind regards,
Daniel
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Ramjet
Top achievements
Rank 1
answered on 30 Apr 2010, 10:36 PM
That's great to know as well but the Toolbar allows me to incorporate additional buttons opening up some great possabilities.

Thank You for the help
JB
0
Smiely
Top achievements
Rank 1
answered on 25 Feb 2011, 08:40 PM
But how can I get functionality as "Add New Record" with new name? New name doesn't open that input window ?
0
Jayesh Goyani
Top achievements
Rank 2
answered on 28 Feb 2011, 05:54 AM
hi Smiely,
plz send some part of your code.

Jayesh Goyani
0
Daniel
Top achievements
Rank 1
answered on 22 Mar 2011, 05:42 PM
Changing the localization for the whole project would change every grid, correct?  Is there a simple way to set it for each grid?

For example, I have a users grid, a brokers grid, etc.  So I would like it to say "Add new User" or "Add new Broker", etc.  Does anyone have a code sample?

I followed the "localizing the command item" link, but that seems to refer to the "RadGrid".  I'm not sure how to refer to the "GridTableView.CommandItemSettings object".  Perhaps I don't understand what the difference is between the "RadGrid" and Telerik's "Grid extension for ASP.NET MVC that uses AJAX for editing".

Thanks in advance!
Daniel

UPDATE: First off, I feel like I am in the wrong discussion (AJAX versus MVC), so I apologize.  However, I will answer my own question.  I don't feel like this is the most elegant solution, but it seems to work.  This will give me a "+ Broker" button instead of a "Add new record" button.  In my Html.Telerik().Grid<> declaration I added this:
.ToolBar(toolBar => toolBar.Template(
@<text>
  <a class="t-button t-button-icontext t-grid-add" href="/Journal/Brokers?mode=insert"><span class="t-add t-icon" style="margin-left:0"></span>Broker</a>
</text>) )
0
Franklin
Top achievements
Rank 1
answered on 11 Jan 2018, 09:35 AM

ASP.NET MVC Grid

"Add New Record" button text can be changed like this:
  .ToolBar(toolbar => toolbar.Create().Text("Add Role"))

 

Tags
Grid
Asked by
Ramjet
Top achievements
Rank 1
Answers by
Ramjet
Top achievements
Rank 1
Daniel
Telerik team
Smiely
Top achievements
Rank 1
Jayesh Goyani
Top achievements
Rank 2
Daniel
Top achievements
Rank 1
Franklin
Top achievements
Rank 1
Share this question
or