Solved

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

Posted on 2014-12-17
1
569 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
ID: 40526260
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
What namespace do I need to import? 2 25
Creating a route in asp.net webforms 2 25
Save ms data to server side. 19 42
Winform Module - What is the ASP.Net equiv 2 19
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
OverviewThis article demonstrates a simple search form using AJAX. The purpose of the article is to demonstrate how to use the same code to render a page and javascript (JQuery) and AJAX to make subsequent calls to refine the results. The princip…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

813 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

19 Experts available now in Live!

Get 1:1 Help Now