Delete rows from spreadsheet

2 posts, 0 answers
  1. Daniel
    Daniel avatar
    3 posts
    Member since:
    Jun 2015

    Posted 02 Aug 2016 Link to this post


    Hi, I'm trying to UPDATE and DELETE some rows from the spreadheet control, with datasource binding.

    I've a custom defined button with save function:

     $("#savebuttons").on('click', '#Save', function () {
            if (!$(this).hasClass("k-state-disabled")) {


    The datasource looks like this:

                (ds => ds 
                .Read(read => read.Action("ProjectElementsSpreadsheet_Read", "ProjectsManagement"))
                .Update(update => update.Action("ProjectElementsSpreadsheet_Update", "ProjectsManagement"))
                .Create(create => create.Action("ProjectElementsSpreadsheet_Create", "ProjectsManagement"))
                .Destroy(destroy => destroy.Action("ProjectElementsSpreadsheet_Destroy", "ProjectsManagement"))
                .Events(e => e.Change("onChange"))
                .Model(m =>
                    m.Id(p => p.IdElement);

    All is working well to update rows, but destroy action never fires in the server, how can I get this working?

    From DataSource documentation:

    Saves any data item changes.
    The sync method will request the remote service if:
    the transport.create option is set and the data source contains new data items
    the transport.destroy option is set and data items have been removed from the data source
    the transport.update option is set and the data source contains updated data items

    Is it valid for spreadsheet datasources too?

    Best Regards




  2. Bozhidar
    Bozhidar avatar
    1146 posts

    Posted 04 Aug 2016 Link to this post


    An issue for this has been created in our github and you can monitor it here:

    Telerik by Progress
    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 Feedback Portal and vote to affect the priority of the items
Back to Top