Solved

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

Posted on 2014-12-17
1
591 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
1 Comment
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 40526260
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Iteration Help (Asp.net VB) 5 24
MailAddress in vb 4 29
VB.Net. Reading xml value 6 29
ASP.NET MVC - Views 3 15
Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

809 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