How to determine the collapsed state of the AjaxControlToolkit CollapsiblePanelExtender in code-behind?

StackOverflow https://stackoverflow.com/questions/2189546

Question

cpe.Collapsed seems to be always set to the initial state and not reflect the current state. Is there a direct way to determine on the server if the panel is collapsed?

Was it helpful?

Solution

if (cpe.ClientState == "true") // panel is collapsed.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top