I have a RadPanelBar that is databound. Based on the values contained in the datasource, certain controls will be added to each child item. Controls such as dropdown, listbox, multiple labels, textboxes and buttons are added. On clicking a button or dropdown selectedindexchanged the controls disappear. I have tried creating dynamic controls in PanelBar_prerender event and they are created appropriately and displayed on the initial page_load,
On the subsequent pages, unless I do a PanelBar.DataBind, I get weird situation where the first child item disappears and the last child item repeats. On the next postback what was now the first child item will disappear and the last child item will now appear three times.
I have seen the example where panelitems are created in the page_load event. However, what I have is a databound PanelBar. I have seen references to "templateneeded" event, but none of the links seem to work to get to that article.
Can you provide an example of where controls are added dynamically to child panelitem when the PanelBar itself is databound and the dynamically created controls need to postback.
Thanks
Sumith
On the subsequent pages, unless I do a PanelBar.DataBind, I get weird situation where the first child item disappears and the last child item repeats. On the next postback what was now the first child item will disappear and the last child item will now appear three times.
I have seen the example where panelitems are created in the page_load event. However, what I have is a databound PanelBar. I have seen references to "templateneeded" event, but none of the links seem to work to get to that article.
Can you provide an example of where controls are added dynamically to child panelitem when the PanelBar itself is databound and the dynamically created controls need to postback.
Thanks
Sumith