Telerik Forums
UI for Silverlight Forum
10 answers
156 views
SInce the latest update, whenever space is pressed to get a space in a textbox, it just changes highlighting of the panel bar without inputting the space.
Petar Mladenov
Telerik team
 answered on 12 Feb 2020
8 answers
145 views
I see mention of the ability for the PanelBar to expand either vertically (native) or horizontally via a property.  What property is that?  I see ExpandMode but that does not address it.

Thanks
-Andy
Martin Ivanov
Telerik team
 answered on 08 Jun 2017
6 answers
118 views
Helo,

i want bind ItemsSource to RadPanelBar and define template for item header and item content. I know  that to define header template I must use ItemTemplate property, but I don't know how to define content template. In RadTabControl I have ContentTemplate property but no in RadPanelBar. I don't want implement hierarchical structure (ItemsSource is flat one level list). Could you explain me how can i do this?
Evgenia
Telerik team
 answered on 06 Aug 2015
1 answer
35 views
Hi,
I have the following XAML 
 <RadPanelBar>
     <RadPanelBar.Items>
            <RadPanelBarItem
                  IsEnabled="{Binding IsEnabled}">

....................
where IsEnabled is a property on the View Model.

As can be seen from the attached image there is a slight darker grey coloured box that fills the items when IsEnabled= false
I just want the text to change when items are disabled with no extra change in background fill colour.

Can I be shown(perhaps sample control template) as to how to do this
Pavel R. Pavlov
Telerik team
 answered on 04 Dec 2014
1 answer
65 views
I am having an issue getting the value of the selected subitems in a panel bar.
There is a main heading "by State" and the subitems are a list of states, TX, CA, NC, NY etc..

I have this code from another example:

1.
1.private void panelBar1_Selected(object sender, Telerik.Windows.RadRoutedEventArgs e)RadPanelBarItem container = e.Source as RadPanelBarItem;
var textBlocksCollection = container.ChildrenOfType<TextBlock>();
var testmessage = container.ToString();
MessageBox.Show(testmessage);
// RadPanelBarItem pbBarItem = e.Source as RadPanelBarItem;
//TextBlock Name = pbBarItem.ChildrenOfType<TextBlock>();
//MessageBox.Show(Name.Text);
MessageBox.Show(textBlocksCollection.Count().ToString() + " text blocks found");<br>        }




It will spit out "Silverlight.Application.DataItem", but i see no way to get to the actual value.(need to know which stat they selected)
Even the code that is commented out(which one user said fixed this problem) does not work. 

Can some shed some light on how to get the actual value of the selected item?



the Xaml is:


<UserControl x:Class="SilverlightApplication2.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
<UserControl.Resources>
<telerik:HierarchicalDataTemplate x:Key="DataItemTemplate" ItemsSource="{Binding Items}">
<StackPanel>
<TextBlock Text="{Binding Text}" />
<TextBlock Text="{Binding Text}" />
</StackPanel>
</telerik:HierarchicalDataTemplate>
</UserControl.Resources>
<Grid x:Name="LayoutRoot" Background="White">
<telerik:RadPanelBar x:Name="panelBar1" ItemTemplate="{StaticResource DataItemTemplate}"
Selected="panelBar1_Selected" />
</Grid>
</UserControl>

























Milena
Telerik team
 answered on 16 Jun 2014
7 answers
52 views
I updated my DLL's and I'm seeing some changes that were not documented.

My panel bar which appears in the xaml as 
<UserControl x:Class="Controls.FormTabs"
    xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation">
    <Grid x:Name="LayoutRoot" Background="White">
        <telerikNavigation:RadPanelBar x:Name="rpbMain">
        </telerikNavigation:RadPanelBar>
    </Grid>
</UserControl>

After updating the xaml, there is a border, so I set the borderthickness to 0 now and that works.  However, the Item headers are getting clipped now and don't have a border, and no corner radius.  

What else should I change?

-Tayllor
Tayllor
Top achievements
Rank 2
 answered on 12 Mar 2014
11 answers
208 views
Hey there,
I'm trying to databind a usercontrol that has a RadPanelBarControl, with two RadPanelBarItems, and these two PanelBarItems have other usercontrols inside.

When i databind the datacontext of the main usercontrol for the first time, the RadPanelBar shows the content correctly, but when i change the datacontext, it doesnt refresh its layout...

I've tried to reproduce exactly the same but with RadTabControls, and it works perfectly.


This is how i change the datacontext of the usercontrol in my host page.xml:

CategoryViewModel vm = new CategoryViewModel(c.DataObject.idCategory);
categoryDetailControl.LayoutRoot.DataContext = vm;


The usercontrol XAML:

<UserControl x:Class="CTI2.Client.Silverlight.Controls.CategoryDetail"
    xmlns:viewModels="clr-namespace:CTI2.Client.Silverlight.ViewModels"
    xmlns:local="clr-namespace:CTI2.Client.Silverlight.Controls"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="800">
      
    <Grid x:Name="LayoutRoot" Background="White">
        <telerik:RadPanelBar ExpandMode="Multiple" Orientation="Vertical" ScrollViewer.HorizontalScrollBarVisibility="Disabled"
                             VerticalAlignment="Stretch" VerticalContentAlignment="Stretch"
                             HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch">
            <telerik:RadPanelBarItem Header="Sub-Categorias (Capas agregadoras)">
                <TextBlock Text="Ainda não disponível nesta versão..." FontWeight="Bold" FontSize="12" FontStyle="Italic" />
            </telerik:RadPanelBarItem>
            <telerik:RadPanelBarItem Header="Titulos na Categoria" >
                <local:CategorySushi x:Name="categorySushiControl" />
            </telerik:RadPanelBarItem>
        </telerik:RadPanelBar>
    </Grid>
</UserControl>
Tina Stancheva
Telerik team
 answered on 10 Mar 2014
1 answer
94 views
Hi, 
I have a PanelBar with the flag ExpandMode="Multiple".
When the sum of the heights of the expanded PanelBarItems is greater than the height of the container, a vertical scrollbar appears. But if the PanelBarItem expanded is the last in the item list, I would like that the PanelBarItem elements automatically appear like the figure2, so that the scrollbar automatically scrolls to the selected item, and not like figure1.

I used AutoScrollToSelectedItem="true", but it doesn't work. 

Boris
Telerik team
 answered on 24 Jan 2014
4 answers
43 views
Hi telerik...

i have radpanel group that have a metro theme, and i apply metro theme globally...
the problem is when i update reference from telerik Q2 2012 to Q2 2013 there some user control's font is missing...
this is example of my radpanel group...

sorry for my bad english...
Rizk
Top achievements
Rank 1
 answered on 03 Oct 2013
4 answers
155 views
I'm having an issue using the panelbar with the way that is utilizes the scroll viewer... when there is not enough room for the contents of a panel in the panelbar it puts a vertical scrollviewer on the control - which is desired - but it puts the scroll bar on the entire control and not just the panel that is causing the height to be too great. This doesn't make any sense.

As you can see in my attachment, this causes the horizontal scroll bar to appear as well - NOT desirable - and part of the vertical scroll bar covers part of the header of the panel that is open. It also pushes any other panel headers down to where you can't even see them - you have to close the panel that is open to even know that they are there.

This can't be by design, can it?  What in the world would you want a control to do this for?

I would like a scroll bar on the panel that doesn't have enough room, not the whole control. Is there any way to do this? I need to have the ability to collapse the panels as well as show all the content in each one and not have any of the headers become not visible.
Daniel
Top achievements
Rank 1
 answered on 10 Jul 2013
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?