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.
(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
Hello Peter,
Let us know if you have further questions with this issue.
Regards,
Lyuba
Developer Support Engineer
Infragistics
www.infragistics.com/support
Hey pfalcon,
So I finally got time to look at this. This clears it up. The difference between your sample and mine is that you define the behavior on every level. I had simply defined it on the top level with enable inheritance set to true on the editing core and row deleting. This causes the server events and other properties to be copied to the behaviors on the child grids. If you define it separately, you will have to manually add the server event to the child grid when it is created. I found doing it inside of row island data binding works. Let me know if you have trouble with that.
-Dave
Attached. Its a very complex form (and I have a lot more javasript work to do to get the interaction whee the client wants it). If you have a simple example of the grid firignt he event at all levels it might be simpler for me to look at that and se what properties I'm missing.
I just installed version 10.1.2051. I see the server events for row deleting firing in all bands. Could you attach your page here to take a look at?
thanks,
Dave