Hello,
I have a column on the grid which can load cascading. When fire to Itemsrequested event and click "Save" button, I received one row is nothing and one row have full columns but don't have data in them. This affect to some my functions. How to solve this issue?
This is my client function I have used to fire to ItemsRequested event.
function myWDG_EnteredEditMode(sender, eventArgs) { var cell = eventArgs._cell; var row = cell.get_row(); var value = row.get_cellByColumnKey("uEntity_ID").get_value(); if (cell.get_column().get_key() == "Entity_Multiple_Address_ID") { _Payment_Entity_Multiple_Address_DropDownProvider.loadItems(value); } }
I using NetAdvantage version 14.1.20141.2011.
Regards,
Manh
Hello Manh,
This javascript error is not causing the issue, I have found out that I didn't include the xml file data3 into the project. About the 'nothing' row, I don't think that this is the correct way to access rows that are still not committed and AutoCrud is set to true also. The main point of Batch Updating was that you can commit all changes at ones, you will need to make a postback to save it to the database. If you want to get some value from the newly added, updated or deleted rows you will need to use the existing server events for updating, adding, and deleting rows (http://help.infragistics.com/Help/Doc/ASPNET/2012.1/CLR4.0/html/WebDataGrid_Batch_Updating_Events.html).
Please have a look at the article above regarding this.
Also I have noticed that on button click you call a method that will remove the empty row that have been added on the last row data change(RemoveInsertRowNull).
Could I ask you what you want to achieve with accessing the row items? I am asking because I want to be sure that this is the best approach to do it.
I am currently looking into this and tomorrow I will contact you with my findings
Hello Zdravko Kolev,
Thank you for quick replying.
The submit button not only commit my changes of a grid but also save changes of other grids and many fields in my form. When update last row, I need add a new row for my customer purposes. How to fix error that you talking about?
Thank & Best Regards,
Thank you for the provided sample, I have managed to start it.
You can perform some kind of check if you are editing the newly added row in order not to add a new one after you update the address. My point is that, when you add new row and start to update it this will cause adding of a new row, and this is not a correct approach. You can check if the updating row is the same as lastly added.
I have a addition question. I want scroll to selected row on the grid, I used rowSelected.get_cell(0).scrollToView() and it worked fine. But after added row, it doesn't works. How to solve it?