Hi,
Here's what I want to do:
- Have 2 RadGrids, let's call them left and right
- When I select an item from the left grid (by clicking a link, which I created using a GridButtonColumn ButtonType="LinkButton"), it adds it to the right grid (I did this by storing the right grid item collection in session)
That's about it.
Currently, my code kinda works, except:
- It reloads the whole page, no AJAX
- After page reload, the new item is not visible in the right grid yet, it requires another reload (which is logical: first post back to enter the ItemCommand event handler method, at which point it's too late to fill in the right grid as it has already been databound, so the second reload is needed so the right grid retrieves the new item from the session)
What's the best way to address both issues?
Load the right grid in JS, or something? Maybe even the left one too, as the actual scenario is a bit more complex than what I detailed above (the left grid items depend on stuff you selected in a menu).
Thanks in advance.
Here's what I want to do:
- Have 2 RadGrids, let's call them left and right
- When I select an item from the left grid (by clicking a link, which I created using a GridButtonColumn ButtonType="LinkButton"), it adds it to the right grid (I did this by storing the right grid item collection in session)
That's about it.
Currently, my code kinda works, except:
- It reloads the whole page, no AJAX
- After page reload, the new item is not visible in the right grid yet, it requires another reload (which is logical: first post back to enter the ItemCommand event handler method, at which point it's too late to fill in the right grid as it has already been databound, so the second reload is needed so the right grid retrieves the new item from the session)
What's the best way to address both issues?
Load the right grid in JS, or something? Maybe even the left one too, as the actual scenario is a bit more complex than what I detailed above (the left grid items depend on stuff you selected in a menu).
Thanks in advance.