I am trying to setup a panel bar to open when clicked and closed when clicked again. I have tried everything I know to do and have tried the panelBar animation sample with the if statements but for some reason couldn't make it work. Can anyone tell me what I'm doing wrong? Here is my code:
Don't know why but I have it working. I changed .ExpandMode(PanelBarExpandMode.Single) to .ExpandMode(PanelBarExpandMode.Multiple). Don't know what that has to do with toggle but it works, so I guess Single == no toggle and Multiple == toggle.
answered on 01 Aug 2014, 10:53 AM
Yes, in ExpandMode Single there should be always one expanded item, thus you can't close it with a click on it. ExpandMode Multiple allows all interactions.
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.