want onclick event onCollapsiblePanelExtender. how should i know that panel is cliecked or expanded.
there is a bool property for the extender called collapsed that you can use :)
but I have to do some oprations on that click like assigning datasource. also selecting items which are not this panel.
Hi shantanu,
Based on your description, Iunderstand that there are two parts to your issue. I have presented the issues and their possible solutions below:
When a click event is fired , you want whether the CollapsiblePanelExtender is collapsed or not.
Excellent example, this cleared things out for me at least...
Thanks!
/Mats
I know this thread already has an answer but I found another solution that suited me better and wanted to share it. The event will be triggered after the animation is complete.
<script type="text/javascript" language="javascript"> var objExtender; // this will run automatically when the page has finished loading function pageLoad(sender, args) { objExtender = $find("<%=CollapsiblePanelExtenderObject.ClientID%>"); objExtender.add_expandComplete(getCollapsibleState); objExtender.add_collapseComplete(getCollapsibleState); } function getCollapsibleState() { if(objExtender.get_Collapsed()) { // code for when it is closed } else { // code for when it is opened } } </script>
Hi Mastl,
I have been very impressed with your high level of technical proficiency; it has been a pleasure working with you.
Best Regards,
Jonathan
Thanks, the same to you!
This forum really is fantastic. Great to be able to get help from people like you, who really knows their stuff.
Best regards,
Mats
No comments:
Post a Comment