Good afternoon.
I have tried to apply the RowAdded client event in the WHDG but it doesn't work.I applied the RowAdding and it works fine.
I attache a code sample with the javascripts events, can someone help me please.
Hello Edward,
This behavior is expected and is by design. Please refer to the documentation where this is stated:
When AutoCRUD is set to false handle RowUpdating, RowDeleting and RowAdding events to perform manual updates, in manual CRUD mode RowUpdated, RowDeleted and RowAdded events are not fired.
If you really need to use this event then you should turn BatchUpdating = true and this time event will be fired. Please let me know if you have further questions on the matter.
Hello Hristo
I understand that if I use BatchUpdating = false I must handle manually CRUD, actually I handle manually the events. I'm asking by the Client Events.In the attached code sample I showed that I handle manually the RowUpdated, RowDeleted and RowAdded events in Server side and in client side, I have tried to handle the RowAdded (in client side) but it doesn't work, but the RowAdding (client event) it work's fine.
I would like to know the reason why the RowAdded doesn't work.
Hello,
I'm just following up to see if you need any further assistance with this issue. If so please let me know.
I did a further investigation and it seems that the client-side ed events are actually fired in manual CRUD. However, a row insert causes an immediate postback and this prevent the RowAdded event to fire.
The RowEditing behavior for example depends on the Activation to persist changes to the data source. So after editing a row you need to change the active row, which will cause postback and persist the changes made. If you set the Activation behavior to immediately cause postback when the active cell is changed:
<ig:Activation> <AutoPostBackFlags ActiveCellChanged="True" /> </ig:Activation>
the RowUpdated client side will not fire.
So it seems that when immediate postback occur the -ed events will note fire on the client. If you need further assistance on this please let me know what you want to achieve in the RowAdde3d client side event, so that I will be able to suggest accordingly.
Looking forward to hearing from you.