This is a migrated thread and some comments may be shown as answers.

filling RadPanelItems dynamical from dataset did'nt work

1 Answer 51 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Bernd
Top achievements
Rank 2
Bernd asked on 31 Oct 2008, 02:36 PM

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

1 Answer, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 31 Oct 2008, 02:53 PM
Hi Bernd,

It will be best if you can open a support ticket and send us a simple running project (incl. your custom skin, CSS, images, DB backup if needed and so on) demonstrating the problem (and step-by-step instructions on doing so). In that way we can reproduce and pinpoint the problems you're facing on our side, understand the logic of your application and provide a solution.

Thanks beforehand for your patience and cooperation

Sincerely yours,
Paul
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
PanelBar
Asked by
Bernd
Top achievements
Rank 2
Answers by
Paul
Telerik team
Share this question
or