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

Can't bind the data in panel bar dynamically

3 Answers 102 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Chris Ward
Top achievements
Rank 1
Chris Ward asked on 27 Jan 2010, 04:43 PM
Hi,

I can't find any way to data bind in a panel bar. We are creating a WCF service that contains two level of data. A top level "GROUP" and "FILTERS" in second level. Binding to itemsource generates the GROUP level panels but not creating the FILTER levels. Is there any solution or code?

Let me know ASAP.

Thanks

3 Answers, 1 is accepted

Sort by
0
Tihomir Petkov
Telerik team
answered on 28 Jan 2010, 02:27 PM
Hi Chris,

You should use a HierarchicalDataTemplate. Take a look at the following two links:

http://demos.telerik.com/silverlight/#PanelBar/DataBinding
http://www.telerik.com/help/silverlight/common-data-binding-hierarchical-data.html

Let me know if you still have difficulties after looking at the example and help article.

Greetings,
Tihomir Petkov
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.
0
yjh
Top achievements
Rank 1
answered on 03 May 2010, 10:31 AM
I bind a ObservableCollection to a panelbar using HierarchicalDataTemplate,but when I add a object to the ObservableCollection,panelbar doesn't refresh. 

I has to set panelbar's itemsource to null and then set the itemsource to the ObservableCollection again.
 
Can panelbar implement load on demand?
0
Valentin.Stoychev
Telerik team
answered on 06 May 2010, 10:45 AM
Hello yjh,

if you are binding to an ObservableCollection the panel bar should update itself automaticaly. Can you open a support ticket and attach a project that we can investigate.

Thanks!

Best wishes,
Valentin.Stoychev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
PanelBar
Asked by
Chris Ward
Top achievements
Rank 1
Answers by
Tihomir Petkov
Telerik team
yjh
Top achievements
Rank 1
Valentin.Stoychev
Telerik team
Share this question
or