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

Closed Issue: Accordion nested inside another control fails to find page level DataSourceID [15591]

$
0
0
When an Accordion control that is nested inside any other WebControl is databound using its DataSourceID property, it fails to find the specified DataSource unless it is also nested inside the same control. This is a result of only searching the Accordion's naming container for the specified DataSourceID. The solution is to first search the naming container, and then, if not found, search the page for the DataSourceID.

This can be corrected by simply changing line 682 of accordion.cs from:

Control control = NamingContainer.FindControl(dataSourceID);

to:

Control control = NamingContainer.FindControl(dataSourceID) ?? Page.FindControl (dataSourceID);
Comments: Thank you for your suggestion! We will keep it in mind during our future work.

Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>