Radgrid Command item

2 posts, 0 answers
  1. jim
    jim avatar
    4 posts
    Member since:
    Mar 2016

    Posted 09 Oct 2017 Link to this post

    I have selected the 'Show Add New Record Button' in the command item setting options. Can the button be formatted? ie change size, color. Or can the font size of the text be bigger?

    Thank you in advance,

    Jim

  2. Vessy
    Admin
    Vessy avatar
    2033 posts

    Posted 11 Oct 2017 Link to this post

    Hi Jim,

    There are two possible ways to style the "Add new record" button of the Grid:
     - You can access the button element and style it directly via CSS:   
    .RadGrid table.rgCommandTable td a[title="Add new record"] {
        color: red;
        font-size: 24px;
    }


    - or you can use CommandItemTemplate and define your own "Add new record" button in it. You can see a sample implementation of this in the following forum post:
    http://www.telerik.com/forums/radgrid-add-new-record-5882b3126a05#6aBe8dwKB0mbJ_W8QPsgKQ

    Regards,
    Vessy
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top