I need to do a similar thing, in that I need to work with a control in a template. However, Im using PanelBar from version 2010.3.1215.35 and my control is in a dynamic RadPanelItem's HeaderTemplate.
I have a custom template as I need to embed a textbox along with other controls in the actual header, which is all working fine, but I also want my expand/collapse image to change when the RadPanelItem is expended or collapsed.
The code I have so far, which doesn't work, is ...
but this fails straight away on the line that reads
In fact, "Item" isn't part of the "eventArgs" object model, but "_item" is?
The point is that I'm trying to access an image control in a tablecell which is part of a table that makes up the HeaderTemplate but I'm haivng no luck at all. It seems the samples below require that the name of the RadPanelItem be known at design time, but I won;t know this.
Any help implementing this for dynamic RadPanelItems would be most appreciated...
Thanks,
Karl