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

PanelBar in PanelBar

5 Answers 91 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Hugo Hugoslav
Top achievements
Rank 1
Hugo Hugoslav asked on 01 Feb 2010, 10:36 AM
Hi,

i have a viewmodel 'people' with a list of persons. Each person has a name and a list of addresses.
How can i show this data in two panelbars?

The first panelbar should be filled with the data of the people and for each person should be a panelbar filled with the addresses.

- person1
  - adress1
     - street
     - postal code
  - adress2
     - street
     - postal code
- person2
  - adress1
     - street
     - postal code
  - adress2
     - street
     - postal code
- person3
...

thx 4 help

5 Answers, 1 is accepted

Sort by
0
Tihomir Petkov
Telerik team
answered on 01 Feb 2010, 04:23 PM
Hello Hugo,

There is really no need to nest PanelBars. Please take a look at the sample project I prepared for you and let me know if the approach I suggest in it will work for you.

Best wishes,
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
Hugo Hugoslav
Top achievements
Rank 1
answered on 02 Feb 2010, 08:34 AM
Hi,

thanks for that nice example. The datastructure in my example is very simplified. I decided to use nested panelbars to keep the gui clear.

In your example the behaviour of the address-elements is like it is at nested panelbars, but they don't look like nested panelbars. Can i let the address-elements look like a panelbar?

thx 4 help
0
Tihomir Petkov
Telerik team
answered on 02 Feb 2010, 10:01 AM
Hi Hugo,

There is currently a known bug in the mechanism for styling items deeper than the root items in the hierarchy. This means that if you cannot achieve the look you are after with styling the DataTemplate for the address fields, you will have to go for the approach with the nested PanelBars after all.

Sorry for any inconveniences this may cause you.

All the best,
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
James
Top achievements
Rank 1
answered on 24 Feb 2011, 06:46 PM
How to do PanelBar in PanelBar?

I have the same issue, the second level bar, like Address1 and Address2 in this sample, doesn't look like a bar. So, I want to know how to do Panel in Panel.

Thanks for help!

James
0
Kiril Stanoev
Telerik team
answered on 01 Mar 2011, 03:31 PM
Hello James,

Unfortunately this scenario is not yet supported. We will be working on this functionality after our official Q1 2011 release which is scheduled for the second half of March. I've added an item in our public issue tracking system under the name "PanelBar: Second level items cannot be styled to look like first level items" and it will be available for tracking and voting tomorrow the latest. I've also updated your Telerik points accordingly. Let me know if you have further questions or comments regarding this issue.

Regards,
Kiril Stanoev
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
PanelBar
Asked by
Hugo Hugoslav
Top achievements
Rank 1
Answers by
Tihomir Petkov
Telerik team
Hugo Hugoslav
Top achievements
Rank 1
James
Top achievements
Rank 1
Kiril Stanoev
Telerik team
Share this question
or