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

PanelBar with mixed static and dynamic content?

2 Answers 77 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 13 Jul 2009, 03:34 PM
Hi there,
I'd like to have a PanelBar which has the following type of layout:

Workflow
    Cases
        Case 1001
        Case 1002
        Case 1003
Search
    Search by case number
    Search by id
Reports
    Activity report
    Audit report

Where All but the items under the Cases node are static, but those under Cases are dynamic, retrieved by a call to a WCF service method.

Is this possible??

Thanks,

James

2 Answers, 1 is accepted

Sort by
0
Brad H
Top achievements
Rank 2
answered on 13 Jan 2010, 10:04 PM
AppendDataBoundItems="True".  This worked for my purposes.  Not sure if it will in your case.
0
Veselin Vasilev
Telerik team
answered on 15 Jan 2010, 11:52 AM
Hello James,

RadPanelBar does not have built-in support for WCF services. Still, you can create the panelbar items on the client, using javascript so this should be possible. Here is how:

Add the static items, then subscribe to the onClientLoad event of the panelbar and manually retrieve the data from your WCF service. Then loop through that data and create the panelbar items as shown here.

Hope this will get you started.

All the best,
Veskoni
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
PanelBar
Asked by
James
Top achievements
Rank 1
Answers by
Brad H
Top achievements
Rank 2
Veselin Vasilev
Telerik team
Share this question
or