grid.insertRow() not defined

4 posts, 0 answers
  1. Marcus
    Marcus avatar
    2 posts
    Member since:
    Jan 2011

    Posted 31 Dec 2014 Link to this post

    hello
    in the Help Document for the Grid

    http://www.telerik.com/help/aspnet-mvc/telerik-ui-components-grid-client-api-and-events.html#insertRow


    the insertRow function is described


    insertRow object example

    var grid = $("#Grid").data("tGrid");
    var product = { ProductName: "KeyBoard", UnitPrice: 53.20};
    grid.insertRow(product);



    But in the current version of Kendo Ui MVC there is no function
    insertRow()


    Why? Is there an replacement?


    Regards and best wishes for the new year
  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 02 Jan 2015 Link to this post

    Hi,

    The documentation you have linked is for Telerik Extensions for ASP.NET MVC which has been discontinued. The documentation of Kendo UI Grid is available here. The equivalent of the insertRow method is addRow.

    Regards,
    Atanas Korchev
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. Marcus
    Marcus avatar
    2 posts
    Member since:
    Jan 2011

    Posted 02 Jan 2015 in reply to Atanas Korchev Link to this post

    Thanks.  But how can i add an object (ex. product) without keyboard interaction.

    I have an combobox outside the grid. the user select one product from the list of products,
    and then i will insert and save this product in the order.products grid.

    Regards
    Marcus
  4. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 05 Jan 2015 Link to this post

    Hello Marcus,

    In that case you should use the add or insert method of the grid's data source.

    Regards,
    Atanas Korchev
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top