Change DataTemplate on Check

2 posts, 0 answers
  1. Kyle
    Kyle avatar
    2 posts
    Member since:
    Jan 2009

    Posted 18 Nov 2009 Link to this post

    I have 2 data templates that are each bound to a different radPanelBarItem.  They both have checkboxes and I was wanting to change data templates when checked.  For example when I check a checkbox in the second radPanelBarItem it gets moved to the first radPanelBarItem and into its data template, as the data templates are different.  Thanks!


  2. Tihomir Petkov
    Admin
    Tihomir Petkov avatar
    576 posts

    Posted 19 Nov 2009 Link to this post

    Hello Kyle,

    Can you please provide a bit more details about the scenario you are after? I believe there may be a better way to work it out. For example, having the additional elements you want to show when the checkbox is checked in the same DataTemplate and show them when necessary via container bindings. But again - I will need some more details in order to suggest alternative approach.

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