locked
How to insert a new row to already existing records in Kedo Ui grid RRS feed

  • Question

  • User-2082939341 posted

    Dear Sir,

    I want to insert a new row to the start of the already existing grid of kendo ui

    here is my code:

    function InsertGrid(InsertRecord)
    {
       
        
      
        var grid = $("#IncidentsGrid").data("kendoGrid");
        grid.dataSource.insert(0, { InsertRecord});
      
    }

    I have done this way but it is not working!

    This code insert single empty row in start

    Regards

    Sunday, July 24, 2016 11:22 AM

Answers

  • User283571144 posted

    Hi Hamad Khan,

    Hamad Khan

    I want to insert a new row to the start of the already existing grid of kendo ui

    According to your code and description, I guess there are some mistake about your insert data's type or format.

    I suggest you could refer to follow demo:

    http://dojo.telerik.com/oTUWe

    Besides,if you have more question about kendo ui grid, I suggest you could ask in this forum.

    http://www.telerik.com/forums/kendo-ui/grid

    Best Regards,

    Brando

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, July 24, 2016 11:47 AM

All replies

  • User-1902643333 posted

    Hello:

    What error have u got?

    Sunday, July 24, 2016 11:35 AM
  • User283571144 posted

    Hi Hamad Khan,

    Hamad Khan

    I want to insert a new row to the start of the already existing grid of kendo ui

    According to your code and description, I guess there are some mistake about your insert data's type or format.

    I suggest you could refer to follow demo:

    http://dojo.telerik.com/oTUWe

    Besides,if you have more question about kendo ui grid, I suggest you could ask in this forum.

    http://www.telerik.com/forums/kendo-ui/grid

    Best Regards,

    Brando

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, July 24, 2016 11:47 AM
  • User429228380 posted

    http://www.telerik.com/forums/add-new-row-at-the-bottom

    Sunday, July 24, 2016 12:49 PM