Registering javascript handler function to handle CollapsiblePanelExtender event

Posted by Sergej Andrejev on Stack Overflow See other posts from Stack Overflow or by Sergej Andrejev
Published on 2010-05-11T16:36:20Z Indexed on 2010/05/11 16:44 UTC
Read the original article Hit count: 452

Filed under:
|

I checked my html page generated by asp.net and I can see this line

Sys.Application.initialize();
Sys.Application.add_init(function() {
    $create(AjaxControlToolkit.CollapsiblePanelBehavior,
    {
        "ClientStateFieldID":"rptActiveQuotes_ctl01_qcQuote_cpeDetails_ClientState",
        "CollapseControlID":"rptActiveQuotes_ctl01_qcQuote_imgShowHide",
        "Collapsed":true,
        "CollapsedImage":"Images/expandablePlus.gif",
        "ExpandControlID":"rptActiveQuotes_ctl01_qcQuote_imgShowHide",
        "ExpandedImage":"Images/expandableMinus.gif",
        "ImageControlID":"rptActiveQuotes_ctl01_qcQuote_imgShowHide",
        "id":"rptActiveQuotes_ctl01_qcQuote_cpeDetails"
    }, 
    null, 
    null, 
    $get("rptActiveQuotes_ctl01_qcQuote_pDetails"));
}); 

I think it's generated from CollapsiblePanelExtender with name cpeDetails. And I see you can pass number of events to it, wich is now null (third argument). What should I do to set add_ended event there?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about ajaxtoolkit