Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
495
Deleted rows not being removed from UI after commit?
posted

Hello,

When I commit a change on a deleted row, the call I make is successful and everything is good. IG does not throw any errors or anything, but the row still remains in the table despite the commit (and the pendingTransactions gets cleared).

Is there a setting or something I'm missing?

Thanks

Parents
No Data
Reply
  • 23953
    Verified Answer
    Offline posted

    Hi Alex,

    The igGridUpdating requires explicitly setting dataType for a primary key. You should check if you explicitly set it, because when not set it is inferred as "string" and will not work for a number values of the primary key column.

    Here is an example code:

    $("#grid1").igGrid({

    primaryKey: "ProductID",

    columns: [

    { headerText: "Product ID", key: "ProductID", dataType: "number"}

    ],

    autoGenerateColumns: false,

    dataSource: adventureWorks,

    autoCommit: false,

    features: [

    {

    name: "Updating"

    }

    ]

    });

     

    Hope this helps,
    Martin Pavlov
    Infragistics, Inc.

Children
No Data