Change "Add new record" text

8 posts, 0 answers
  1. Ramjet
    Ramjet avatar
    51 posts
    Member since:
    Jul 2009

    Posted 30 Apr 2010 Link to this post

    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
  2. Ramjet
    Ramjet avatar
    51 posts
    Member since:
    Jul 2009

    Posted 30 Apr 2010 Link to this post

    I got it! I can use a RadToolBar and give myself a few more options as well!!!

    I give myself 100 points.
  3. Daniel
    Admin
    Daniel avatar
    4949 posts

    Posted 30 Apr 2010 Link to this post

    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.
  4. Ramjet
    Ramjet avatar
    51 posts
    Member since:
    Jul 2009

    Posted 30 Apr 2010 Link to this post

    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
  5. Smiely
    Smiely avatar
    129 posts
    Member since:
    Nov 2010

    Posted 25 Feb 2011 Link to this post

    But how can I get functionality as "Add New Record" with new name? New name doesn't open that input window ?
  6. Jayesh Goyani
    Jayesh Goyani avatar
    2733 posts
    Member since:
    May 2010

    Posted 27 Feb 2011 Link to this post

    hi Smiely,
    plz send some part of your code.

    Jayesh Goyani
  7. Daniel
    Daniel avatar
    8 posts
    Member since:
    Mar 2011

    Posted 22 Mar 2011 Link to this post

    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>) )
  8. Franklin
    Franklin avatar
    3 posts
    Member since:
    Dec 2017

    Posted 11 Jan 2018 Link to this post

    ASP.NET MVC Grid

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

     

Back to Top