This question is locked. New answers and comments are not allowed.
This is a very odd one.
I have a grid in a partial view that is loaded dynamically. A tree view supplies a parameter to the call to load the view. After some other fun and games I got this to work fine.
Now I am adding events so that when I select an item on the grid a new controller/page is displayed.
When the partial view is loaded for the very first time, the AJAX select does not load the grid. None of the events fire at all i.e. Load, Error, DataBound, etc. However, if I select another item on the tree, the same partial page is loaded but with a different parameter the grid loads fine and the row can be selected. I can select the original parameter and that works fine too
If I comment out the lines where the events are declared then the grid is loaded fine.
Anyone got any ideas?
I have a grid in a partial view that is loaded dynamically. A tree view supplies a parameter to the call to load the view. After some other fun and games I got this to work fine.
Now I am adding events so that when I select an item on the grid a new controller/page is displayed.
When the partial view is loaded for the very first time, the AJAX select does not load the grid. None of the events fire at all i.e. Load, Error, DataBound, etc. However, if I select another item on the tree, the same partial page is loaded but with a different parameter the grid loads fine and the row can be selected. I can select the original parameter and that works fine too
If I comment out the lines where the events are declared then the grid is loaded fine.
Anyone got any ideas?