Hello,
We are trying to use the igGrid to edit records that do not necessarily have a visible primaryKey column. At first we tried to used a hidden column by setting the column property hidden: true, but it causes the data to shift one column to the left as seen in the screen shot below.
Notice that the checkbox selector is no longer visible and the data for the ID column is in the checkbox column.
To get around this I gave the primary key column a width of 0px, header of "", and removed the hidden: true property. This works fine except when we enter edit mode the row being edited displays a new column and is shifted to the left as seen in the following screen shot.
We are using version 11.2.20112.1023 of the jQuery controls.
Thanks,Joshua
Thanks Martin,
I am attaching code to this post I modified your example to load our data.
What you see is a results var that contains a sample of the json being returned from the server. This json contains the schema, columns, data, and grid features because the grid never has static columns and can be modifed at anytime by an administrator. The grid is initialized after this data has been sent to the client.
The column _deleteID is the primary key and might be the same as objectID, and _objectID it is the only column that is 100% unique. You will see a column called UniqueKey this is actually a sequence number generated by the server but does not represent the row data.
Thanks,
Joshua
Hi joshua82,
The first issue you are experiencing is because "RowSelectors" feature is enabled along with "Updating" feature. The problem is fixed in our next version which will be available very soon.
I was unable to reproduce the problem which you are experiencing in your workaround. I've attached my sample. Please review it and see if it can help you.
If it is not a problem you can post your igGrid initialization code for me to investigate.
Best regards,
Martin Pavlov
Infragistics Inc.