I have a three level hierarchical grid bound to an object data source. I can add, edit and delete rows in each level/band successfully.
However I need to perform some validation on the delete operation, which requires a postback. The RowDeleting server event is working, but its only being fired for rows in the root band? rows in the child bands are deleted successfully, but the server event isn't working?
Have I missed a setting or is it something else?
My workaround will be to have client events that perform manual page methods to do the same thing. Using the RowDeleting event for all three bands would be *much* simpler...sigh.
Hello Peter,
Let us know if you have further questions with this issue.
Regards,
Lyuba
Developer Support Engineer
Infragistics
www.infragistics.com/support
(sorry for the delay in replying - far too busy)
Thanks, I finally got it working. I have to retain local behaviours for each band as each one requires different columns to be editable or not (including unique editor providers). But your hint about specifying the server event when each RowIsland is created proved useful. i added:
protected void whgProjectPlan_RowIslandDataBinding(object sender, RowIslandEventArgs e) { e.RowIsland.RowsDeleting += new RowDeletingHandler(RowIsland_RowsDeleting); }
And I now have a server side event firing for each band in te hierarchy - actually I had to remove the original rowDeleting event as the rowIslands event also fires for the root band - which is exactly what I wanted anyhow.
It would be nice if there was some way of specifying server events for child bands in the designer - extend the "behaviour" sections to include server side events...etc. it would eliminate the confusion here