Skip to content

Updates and deletions don't work for newly inserted items #12

@spacecougar

Description

@spacecougar

JsGrid-WebAPI does not save changes or deletions for newly inserted items. The update (checkmark) and delete (trashcan) buttons just hang when clicked, so I have to click the X to cancel the request.

Updates and deletions work for the items that are pre-populated via the initializer, but not for items I add after the page has loaded.

It looks like the item ID is not getting updated upon insert. Therefore, operations on newly created items cannot be executed since they need to first be referenced via ID, but without an ID they are not found in the collection.

I'm running jsgrid 1.5.3 and the ASP.Net WebAPI exactly as I've downloaded it. I've made no changes to the code. The only difference, however, is that I've manually migrated all the source code into a Visual Studio 2017 project (the c# project file could not be converted automatically in VS 2017). Therefore I've updated a number of references to their newest versions. Also, I'm using jquery 3.3.1, instead of version 1.8.2, which I believe the original was based on. I'm not sure if any of these changes could have affected anything.

I appreciate your help in solving this problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions