Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a form with a collapsable editable nested gridview. When I try to edit the items in the child view a postback occurs which collapses all the child gridviews. I looked at some other posts on the web, but couldn't figure out how to get it "remember" which child views were expanded and open them again after a postback.
Posted

1 solution

Hi,

expanding and collapse panels is only client side(javascript) actions .

I hope you know that asp.net don't maintain javascript actions.

But

If you use Jquery it can achieve .

on every action you've to post that action to server and maintain that data in session.

And then in pageload check that session data , set styles and properties to panels

I hope you understood what I said

All the Best
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900