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
430
How to set row index/id as the primary key of the iggrid?
posted

http://jsfiddle.net/jc8kce18/42/

In the above example "EmployeeID" is set as primarykey which is read from JSON.

I want to set row index of iggrid to be set as the primary key and it should not read from JSON. Even for existing records it should be set in that way.

Parents
No Data
Reply
  • 7535
    Offline posted

    Hello Akhi,

    By design primary key has to be in JSON. The igGridUpdating requires igGrid.options.primaryKey to be defined and the primary key field to be in the grid's column collection in order to work.

    The reason is that we need the primary key data type in JSON in order to look-up the correct record in the data source.

    Please let me know if you need further assistance.

Children
No Data