Hi,
When a user selects a row in igGrid, I open up a dialog box with fields that the user can edit. When the dialog box closes, I want to be able to to update the corresponding row (cells) in igGrid.
Calling this method does not seem to be doing anything:
$('#grid1').igGridUpdating('updateRow', 1, { 'Name': 'Alex' });
'#grid1'
'updateRow'
'Name'
'Alex'
I tried different features settings when creating the grid, but still no luck. Can you point me in the right direction? I also need to be able to add a new row, bypassing the built-in inline editor (again, using my own UI).
Thanks,
Daniel
Hi Daniel,This is actually a know limitation of the igGrid which has been described in this help topic: Grid API calls do not work as expected with DIV elements solution.Please let us know if you run into any other issues or if you have questions about our controls.Thanks,Borislav
I changed the grid container from div to table and the update is now working. Thanks.
is autoCommit set to true in your case? (that's part of the grid options).
Angel
I'm not sure what can be wrong in your case. I've attached a sample which shows how updateRow method is working (I didn't create custom UI for editing the row).Do you see error messages in the JS console? What data types are the columns which you're trying to update?What version(and build number) of NA for jQuery controls do you use?It will be good to upload sample which reproduces the problem, or you can modify my sample.
Best regards,Martin PavlovInfragistics, Inc.
Does anyone have an idea? Thanks.