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

Created Issue: AccordionPane is NOT DataBound in ItemDataBound event [27342]

$
0
0
Unlike other databound controls, which allow code similar to the following:

var control = e.Item.FindControl("controlName");
// manipulate attributes, or add triggers to control

the Accordion ItemDataBound event returns null for these controls. The debugger reveals that the templates have not yet been instantiated by the time this event is fired.

This issue, and the issue regarding the lack of a SelectedIndexChanged event have required me to use the PreRender event as a catch-all for anything requiring initialization, regardless of when those initializations really should occur.

In short, I feel that Accordion is quite under-developed. While it is possible to make it do what I want, it has been very non-intuitive, and does not make for clean code.

Viewing all articles
Browse latest Browse all 4356

Trending Articles



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