


<script type="text/javascript">
//<![CDATA[
Sys.Application.initialize();
Sys.Application.add_init(function() {
$create(Telerik.Web.UI.RadComboBox, {"_dropDownWidth":0,"_height":0,"_skin":"Gray","_text":"Area","_uniqueId":"ctl00$m$g_6c85ed41_4e7e_4153_aabb_b3258fd82c06$lstArea","_value":"","_virtualScroll":false,"clientStateFieldID":"ctl00_m_g_6c85ed41_4e7e_4153_aabb_b3258fd82c06_lstArea_ClientState","collapseAnimation":"{\"type\":12,\"duration\":200}","itemData":[{"selected":true,"imageUrl":"/PublishingImages/well.ico"},{"value":"Area,6937958b-9f45-4af8-8e01-c7e9d511bd8e"}],"selectedIndex":0}, {"selectedIndexChanged":OnDropDownListChanged_Area}, null, $get("ctl00_m_g_6c85ed41_4e7e_4153_aabb_b3258fd82c06_lstArea"));
});
//]]>
</script>
Zdrasti at Telerik,
I am using the radpanelbar control q2 2008 (2008.2.723.35) of your controls.
I want to fill the RadPanelItems dynamically (from a DataSet). At the same time, I want to create the templates on these items dynamically as well.
The way i am doing this is:
I set the datasource for the radpanelbar control, which contains a DataTable, and deliveres the RadPanelItems.
To create the content on the templates, i am using a class, which is derived from the ITemplate interface and use it for the itemtemplate-property of the RadPanelItems.
I fill the itemtemplate of the clicked radpanelitem in the server side ItemClick-event.
Trying it out as I mentioned, I have a problem I cannot work around:
I start the page and the panel is not expanded. When I click on an PanelItem, the event ItemClick is fired, and I load the data and the ItemTemplate in the code-behind. The content, however, is not displayed. When I click the PanelItem a second time, the (right and well-formated) content is displayed for less than a second, and then the panel is collapsed.
Thank you very much for your help!
Bernd Degen