Solved

Keeping collapsed/expanded state of a CollapsiblePanelExtender item after rebinding parent DataGrid in ASP.NET

Posted on 2014-12-17
1
517 Views
Last Modified: 2015-01-08
I have a GridView with a CollapsiblePanelExtender. The AutoCollapse and Collapsed values are currently set to false.
I have a button that essentially adds another row to the table that populates the gridView then rebinds the gridview with the new row reflected.

If I have a row expanded when I press this button, the page posts back and the false collapsed value takes over collapsing all of my rows.

I can flip flop this by setting the collapse values to true.

Either way, my rows are always expanded or collapsed regardless of their state when posting back using this button.

Is there a way for me to start with all of my rows collapsed on the initial page load and keep their collapsed/expanded state on every postback following?
0
Comment
Question by:mwmiller78
1 Comment
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
Comment Utility
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
This video discusses moving either the default database or any database to a new volume.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now