Hi. I need a help.
I'm using Webgrid on Infragistics .Net 2008 CLR 2.0 .
The problem is when I add new rows by AddNewRowBox or AddNewRowDefault what ever, UGrid_UpdateRowBatch evnet is fired instead of UGrid_AddRowBatch event.
And in the UGrid_UpdateRowBatch event method, the row index is the last index of the grid row. For example, if there is 5 rows in the grid. the last row index of grid would be 4. Then when I add one or more and submit, then the UGrid_UpdateRowBatch event is fired only once and in the method the e.Row.Index value is 4. Adding new row working like updating last row in my code. Do you have any idea what I missed?
Thank you. but still confused.. I removed Batch Event, but UpdateRow, AddRow, DeleteRow doesn't fire. I made another code for test, it works right. I need to find out why..
Use the non-batch events instead (UpdateRow, AddRow, DeleteRow). If you haven the grid's AJAX turned on, then these events will be raised by the grid through AJAX as needed.
Thank you for your reply. But it give me another question.
Don't use the grid's AJAX functionality? or another way to catch the added row info when the page is submitted?
I need to display the grid which has about 10 columns and more than 1500 rows. No paging. Have to display all rows at the page. It can be modified, sorted, filtered..
UltraWebGrid.v4.3 was fast showing 10 columns and 1500 rows. But .Net 2008~2009 version is very slow. So, the anwser was using LoadOnDemand AJAX functinality.
What I do? Can you give me a solution?
mamahaha said:Can't I use both of LoadOnDemand and Add/UpdateRowBatch?
I've found it hapen when using LoadOnDemand.
I made simple source without LoadOnDemand. It worked collectly. Then
I've changed code to using LoadOnDemand. The problem I mentioned happen again.
Can't I use both of LoadOnDemand and Add/UpdateRowBatch?