Solved

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

Posted on 2014-12-17
1
676 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:Mike Miller
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 40526260
0

Featured Post

Enroll in July's Course of the Month

July's Course of the Month is now available! Enroll to learn HTML5 and prepare for certification. It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

636 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