Quantcast
Channel: AjaxControlToolkit Work Item Rss Feed
Viewing all articles
Browse latest Browse all 4356

Created Issue: Accordion's SelectedIndex doesn't count hidden panes, other methods do. [27292]

$
0
0
The selectedindex property on Accordion presumably just gets translated into a javascript call - so panes hidden on the server don't count, but other serverside methods (such as AccordionPaneCollection's IndexOf method) just go through the collection of AccordionPanes and count all panes, not just visible ones.

As a result:
myAccordion.SelectedIndex = myAccordion.Panes.IndexOf(myAccordionPane)
will result in a different accordion pane being selected when the page is rendered, if any prior panes are hidden.

Viewing all articles
Browse latest Browse all 4356

Trending Articles