See the following
my column name is _ so "_" The getCellText command returns the text so we know there is no issues reading from a table at this location. Then the setCellValue command thinks the row was deleted and its clearly not. The code is halted at that point.
alert( this.gridIDMap.getCellText( rows, "_") ); //returns the text as it shows on th etablealert( this.igGridUpdating.setCellValue( rows, "_", "test" ) );// Error: In order to support update operations after a row was deleted, application should define "primaryKey" in options of igGrid.alert( 1 );// does nto make it to this point
setting primaryKey to "_" gives me can not convert to null opbject
also get this error on edit cell.
-----------------------------
so I found a hack
this.gridIDMap.cellAt( 0, rows ).innerHTML = ...
but this does not fix the edit mode
Hello Seang,
This is a regression in the igGridUpdating.setCellValue API method which appeared in 12.2.2086 service release. I've logged an internal bug with number 144383.
You'll be notified by e-mail when the bug is fixed.
Thank you for pointing that out for us,Martin PavlovInfragistics, Inc.
After a long discussion and trading code samples it turns out this was never an error. I'm told I must use a primary key. Though this is no good because the code is inconsistent?
For example if I have a 2 by 2 grid with a hidden field "pri"
col1 col2 ( "pri" hidden )
1_____1
2_____2
I get these results
alert(this.gridIDMap.option( "columns" ).length); 3... no, its hidden so there should only be 2.
alert( this.gridIDMap.cellAt( 2, 0 ).innerHTML ); error this is good because 2 is hidden and that is what I would expect.
now if I unhide and do the same I get this.
alert( this.gridIDMap.option( "columns" ).length); 3... in this case 3 is correct.
alert( this.gridIDMap.cellAt( 2, 0 ).innerHTML ); alerts an empty cell as it should because its now shown.
So if cellAt takes in to consideration that the cell is not shown then why does columns not? You can't have some functions calculate hidden fields and other not? Nor is there any good reason why a primary key is need as this grid can be used as a grid of number ( the way I use it ). If I want to update cell 1,2 I should not need a primary key to do so? This is all very disconcerting.
Can anyone find a good solution here. The suggestion of making a hidden column is not going to work for the reason I mentioned above.