We take pride in your success. We let our positivity drive us, day in and out. Talk to us at Mindfire to know us more.

Software Technology Tips

A number of times we come across multiple collapsible panels in a single page. To call different javascript functions on collapse and expand events of collapsible panels, you can follow these steps:

Add a BehaviorID to the CollapsiblePanelExtender. 
Use javascript functions to hook onto the Expand and collapse events.

Example:

function pageLoad(sender,args)
{
    $find("collapsibleBehavior").add_expandComplete( expandHandler );
    $find("collapsibleBehavior").add_add_collapseComplete( collapseHandler );
}
 
function expandHandler( sender , args )
{
    alert('I have expanded');
}
 
function collapseHandler( sender , args )
{
    alert('I have collapsed');
}


Related Tags:

ASP.NET

Author: Mritunjay Kumar

top

ASP.NET

Let us Connect!

privacy

copyright (c) Mindfire Solutions 2007-2012. Login