Javascript – ASP.NET AjaxControlToolKit Accordion set active pane via javascript

I would like to be able to change the active pane of an accordion using javascript.

I see a behavior set_SelectedIndex but I can not seem to get it to work.

How can I find out what the supported methods are for this control?

How can I set the selected index from the page?

Best Solution

I found a comment on this blogpost which showed me how to use Accordion.AccordionBehavior.set_SelectedIndex(index);.

I am outputting a startup script from the codebehind of variables with the paneIds prefaces with a code and their index. This allows me to set the active pane by id.