Wednesday, August 18, 2010

Track Collapse/ Expand event of AJAX Collapsible Panel Extender to call javascript

Add This Code as java script................


 function pageLoad(sender, args) {
      
        $find(PanelbehaviourId).add_expandComplete(expandHandler);
        $find(PanelbehaviourId).add_collapseComplete(collapseHandler);
    }

    function expandHandler(sender, args) {
        document.getElementById(focustextBox).focus();//ANY EVENT
    }

    function collapseHandler(sender, args) {
      //  document.getElementById("tdMenu").style.width = "20px";
    }
   
 

No comments:

Post a Comment