Error using RadPanelBar within DataForm DataTemplate

2 posts, 0 answers
  1. Clive Shirley
    Clive Shirley avatar
    1 posts
    Member since:
    Sep 2009

    Posted 09 Dec 2009 Link to this post


    I hope someone can help.....

    I am getting the following error message when using a RadPanelBar/RadPanelBarItem control within a DataTemplate bound to a dataform.  This is easily replicable - so I hope I am doing something wrong !

    Incidentally this was working fine in the Q2 drop.

    Kind Regards


    {System.ArgumentException: DependencyProperty Telerik.Windows.Controls.HeaderedContentControl. FocusVisualStyle cannot be set on an object of type Telerik.Windows.Controls.RadPanelBarItem.

    Here is the xaml:

    <UserControl x:Class="RadControlsSilverlightApplication1.MainPage"



        xmlns:d="" xmlns:mc="" 





        mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">

      <Grid x:Name="LayoutRoot">

            <dataForm:DataForm x:Name="testForm" >




                            <telerikNavigation:RadPanelBarItem x:Name="FixtureSection" IsExpanded="True" IsSelected="True">


                                    <TextBox Text="Hello World" />


                                <dataForm:DataField Label="Name">

                                    <TextBox Text="{Binding Name}" />


                                <dataForm:DataField Label="Description">

                                    <TextBox Text="{Binding Description}" />









    Here is the Code behind:

    using System;

    using System.Collections.Generic;

    using System.Linq;

    using System.Net;

    using System.Windows;

    using System.Windows.Controls;

    using System.Windows.Documents;

    using System.Windows.Input;

    using System.Windows.Media;

    using System.Windows.Media.Animation;

    using System.Windows.Shapes;

    namespace RadControlsSilverlightApplication1


        public partial class MainPage : UserControl


            public MainPage()



                this.Loaded += new RoutedEventHandler(MainPage_Loaded);


            void MainPage_Loaded(object sender, RoutedEventArgs e)


                testForm.CurrentItem = new TestObject() { Description="Hello World", Name="HW"};


            public class TestObject


                public string Name { get; set; }

                public string Description { get; set; }




  2. Kiril Stanoev
    Kiril Stanoev avatar
    1508 posts

    Posted 14 Dec 2009 Link to this post

    Hello Clive,

    This issue has been fixed with last week's internal build. Update your binaries and let me know if you still experience the same issue.

    Kind regards,
    Kiril Stanoev
    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. DevCraft banner
Back to Top