PanelBar in PanelBar

6 posts, 0 answers
  1. Hugo Hugoslav
    Hugo Hugoslav avatar
    3 posts
    Member since:
    Feb 2010

    Posted 01 Feb 2010 Link to this post

    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
  2. Tihomir Petkov
    Admin
    Tihomir Petkov avatar
    576 posts

    Posted 01 Feb 2010 Link to this post

    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.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Hugo Hugoslav
    Hugo Hugoslav avatar
    3 posts
    Member since:
    Feb 2010

    Posted 02 Feb 2010 Link to this post

    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
  5. Tihomir Petkov
    Admin
    Tihomir Petkov avatar
    576 posts

    Posted 02 Feb 2010 Link to this post

    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.
  6. James
    James avatar
    2 posts
    Member since:
    Feb 2011

    Posted 24 Feb 2011 Link to this post

    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
  7. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1512 posts

    Posted 01 Mar 2011 Link to this post

    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!
Back to Top
UI for WPF is Visual Studio 2017 Ready