eviljack
eviljack

Reputation: 3716

How do I programmatically change ASP.NET ajax AccordionPane with javascript?

I've got an asp.net ajax style AccordionPane control that I am trying to get/set based on some user interactions. However it seems not let me do this with javascript:

function navPanelMove() {  
  var aPane = $get('ctl00_Accordion1_AccordionExtender_ClientState');  
  openPaneID = aPane.get_SelectedIndex();  // doesn't work
}

Upvotes: 0

Views: 1222

Answers (1)

Aaron Powell
Aaron Powell

Reputation: 25097

You'll need to use $find('behaviorId')

You want the AjaxControlToolkit.AccordionBehavior object, not the DOM elements

Upvotes: 2

Related Questions