Customizing header of a panel bar

2 posts, 0 answers
  1. piyush
    piyush avatar
    8 posts
    Member since:
    Jun 2010

    Posted 06 Aug 2010 Link to this post


    I have added a text box in a RadPanelBarItem.Header and did a databinding with the viewmodel for its text property.However it is not showing text box in panel bar on binding.Can anyone help  me in below ?









    <StackPanel Orientation="Horizontal" >





    <TextBlock Margin="0 0 0 0" Text="Results:" />





    <TextBox x:Name="txtResultCount" Text="{Binding ResultCount}" Visibility="{Binding IsResultCountVisible, Converter={StaticResource BoolToVisibility}}" VerticalAlignment="Top" Height="16" Width="60"></TextBox>










    ViewModel has below two properties




    public Boolean IsResultCountVisible





    get { return _IsResultCountVisible; }




    set { _IsResultCountVisible = value; }





    public Int32? ResultCount





    get { return _ResultCount; }




    set { _ResultCount = value; }



  2. Miro Miroslavov
    Miro Miroslavov avatar
    588 posts

    Posted 11 Aug 2010 Link to this post

    Hello piyush,

    Can you make sure that you set the ViewModel as DataContext to the RadPanelBarItem, so you bind to the correct object?
    If it' ok, can you please open a support ticket and send us your example demonstrating the problem?
    Thank you.

    All the best,
    Miro Miroslavov
    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
  3. DevCraft R3 2016 release webinar banner
Back to Top