Adding a new row at the bottom of grid

6 posts, 0 answers
  1. KBN
    KBN avatar
    5 posts
    Member since:
    Aug 2012

    Posted 08 Aug 2012 Link to this post

    I have tried the solution in the following post: Add new row at the bottom. The row is added to the bottom of the grid in edit mode, but once you click out of edit mode, the row then moves to the top of the grid. I need the row to stay at the bottom or in other words, add rows to the grid in order from top to bottom. How can this be done?

    Thanks!
  2. THOMAS
    THOMAS avatar
    4 posts
    Member since:
    Nov 2012

    Posted 20 Dec 2012 Link to this post

    Hello,

    I have the same problem, is there any solution ?
    Using CSS or something but I don't see any class to customise...

    Thanks
  3. Kendo UI is VS 2017 Ready
  4. Petur Subev
    Admin
    Petur Subev avatar
    1882 posts

    Posted 24 Dec 2012 Link to this post

    Hello,

    There is configuration which you can use to specify the insert position to be at the bottom. You do not need to use such work-around anymore.

    "editable": {
        "confirmation": "Are you sure you want to delete this item?",
        "mode": "inline",
        "createAt": "bottom"
    },


    All the best,
    Petur Subev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  5. Sypher
    Sypher avatar
    79 posts
    Member since:
    Aug 2006

    Posted 14 Jan 2013 Link to this post

    The createAt configuration option seems to do nothing for me. I am using v. 2012.3.1114. Would sorting options on the grid have an affect on the new item location? Also, the option does not seem to be listed in the documentation at http://docs.kendoui.com/api/web/grid#editable-booleanobject-default. Is this a new configuration option?
  6. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2877 posts

    Posted 17 Jan 2013 Link to this post

    Hi Bryan,

    I tested this case with version 2012.3.1114 and got everything to work as expected. Here is an example.
    In case the Grid is sorted this option will be ignored and the created record will be according to the sort criteria.

    Yes the createAt configuration is a relatively new. I have added it to the documentation but it may take some time until changes are published live.

    Kind regards,
    Alexander Valchev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  7. Sypher
    Sypher avatar
    79 posts
    Member since:
    Aug 2006

    Posted 17 Jan 2013 Link to this post

    Okay, thanks for looking into it. I'd prefer the createAt to override the sort for the placement of the create line, but it's good to know it works as designed.
Back to Top
Kendo UI is VS 2017 Ready