How to determine the collapsed state of the AjaxControlToolkit CollapsiblePanelExtender in code-behind?
-
25-09-2019 - |
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?
Solution
if (cpe.ClientState == "true") // panel is collapsed.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow