I think what you can do is build a ajax based approach.
Have a main view say index. Have three divs one below other first for the search criteria and search button, second for grid, and third for edit.
Put your search criteria first section. Implement ajax form in the first section and give the target control to the second div. This will display the content of the result in the second div. Now if you want to hide the search criteria. You can write a script
in the search result view to hide the first div. Now on click of a row in the table implement an ajax action link with target as third div. Same like in result div, if you want to hide the result while editing, add a script in the edit view to hide the result
view. On cancel button of the edit view implement javascript just to show the middle div back.
Thanks & Regards
Anup Das Gupta
Mark as Answer if you feel so. Visit My Blog
asteranup
All-Star
30184 Points
4906 Posts
Re: Maintaining data between multiple views.
Apr 27, 2012 11:16 AM|LINK
Hi,
I think what you can do is build a ajax based approach.
Have a main view say index. Have three divs one below other first for the search criteria and search button, second for grid, and third for edit.
Put your search criteria first section. Implement ajax form in the first section and give the target control to the second div. This will display the content of the result in the second div. Now if you want to hide the search criteria. You can write a script in the search result view to hide the first div. Now on click of a row in the table implement an ajax action link with target as third div. Same like in result div, if you want to hide the result while editing, add a script in the edit view to hide the result view. On cancel button of the edit view implement javascript just to show the middle div back.
Anup Das Gupta
Mark as Answer if you feel so. Visit My Blog