Telerik Forums
UI for WPF Forum
2 answers
96 views
Hi,
I'm using TreeView with the checkbox enabled

<telerik:RadTreeView MinWidth="150"  
                                     IsLineEnabled="True"  
                                     ItemsOptionListType="CheckList"  
                                     x:Name="leftTree"  
                                     IsTriStateMode="True"  
                                     IsOptionElementsEnabled="True"  
                                     ItemTemplate="{StaticResource dataTemplate}"/> 

So the basic usage:
The treeview has no checked items to begin with and is collapsed. The user should be able to check the top item.

So the problem is that I cannot iterate through the checked item collection when the tree is collapsed because the items do not exist.
Is there any way to have the items created so I can iterate through them without expending the tree.

Best regards
Kristján.
Valentin.Stoychev
Telerik team
 answered on 15 Jun 2010
4 answers
130 views
Hello,
When I use RadAlert in windows7 I found that it can not show correctly except some fonts, just like the visibility property is set to hidden, is there any way to solve this problem?
thank you!
Miroslav Nedyalkov
Telerik team
 answered on 15 Jun 2010
4 answers
112 views

Hi,
I'm trying to use this control, but I'm finding many problems and lose much time because I do not understand what is working and what is not.
I'm trying to run these events need to manage running some limitation that I want to impose on any of these items dynamically but it seems that events need not work.
It 'possible that these events are not implemented?

PreviewDragEnter
PreviewDragLeave
DragEnter
DragLeave

Thanks Marcello

Tina Stancheva
Telerik team
 answered on 15 Jun 2010
5 answers
215 views
DEFINE TEMPLATE

        <DataTemplate x:Key="MiaSubCategoria">
            <StackPanel Orientation="Horizontal">
                   <TextBlock Text="{Binding Nome}"/>
            </StackPanel>
        </DataTemplate>
        
       <HierarchicalDataTemplate x:Key="MiaCategoria"
                                 ItemTemplate="{StaticResource MiaSubCategoria}"
                                 ItemsSource="{Binding SubCategorie}">
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="{Binding Nome}"/>
            </StackPanel>
        </HierarchicalDataTemplate>

 
SET TREEVIEW:

      <telerikNavigation:RadTreeView Canvas.Left="62" Canvas.Top="25" Height="137" Name="RadTreeView1" Width="486"  IsSingleExpandPath="True" TextDropAfter="Dopo" TextDropBefore="Prima" TextDropIn="In mezzo a" AllowDrop="True" IsDragDropEnabled="True" HorizontalContentAlignment="Stretch" IsExpandOnDblClickEnabled="False" IsExpandOnSingleClickEnabled="True" ItemTemplate="{StaticResource MiaCategoria}"/>


VB CODE FOR POPULATING TREE

Dim
miacollez As ObservableCollection(Of Categorie)

 

miacollez =

New ObservableCollection(Of Categorie)(MyEDM.Categorie.Include("SubCategorie"))

 

 

Me.RadTreeView1.ItemsSource = miacollez

 

 


Hi, I need clarification on how to handle correctly the label called DragTooltipText because I can not set the field name but I associate the name of dataobject (look image in attach). I tried with the styles but does not work .. I can only change colors but the content changes runtime clearly as I do?

Thanks for your cooperation

Marcello

PS: Sorry for my english

Tina Stancheva
Telerik team
 answered on 15 Jun 2010
1 answer
240 views
Hello,

I am using the latest version of the RadControls and the code in the WPF MVVM Support example to create a horizontal bar chart.  The example shows different colors in a regular bar chart, however, when I change it to a horizontal bar definition the fill colors in the rectangles disappear. What is the syntax for creating custom colors in a horizontal bar chart?  Is this possible?

Thank you.
Sia
Telerik team
 answered on 15 Jun 2010
3 answers
88 views
The RadGridView CanUserSelect property no longer works as of WPF controls version 2010_1_0603. This problem is visible in your online demo in the "overview/selection" section.

-Mark
Milan
Telerik team
 answered on 15 Jun 2010
1 answer
105 views
Hi team,
I have defined RadGridView as follows:
 

<

 

GroupBox Header="Available Parts" DockPanel.Dock="Left">

 

 

 

 

<telerik:RadGridView Name="AvailablePartsGrid"

 

 

 

Width="390"

 

 

 

UseAlternateRowStyle="True"

 

 

 

AutoGenerateColumns="False"

 

 

 

MultipleSelect="True"

 

 

 

ColumnsWidthMode="None"

 

 

 

ShowGroupPanel="False"

 

 

 

CanUserResizeColumns="False"

 

 

 

CanUserFreezeColumns="False"

 

 

 

FrozenColumnCount="1"

 

 

 

 

 

 

ItemsSource="{Binding AvailableParts}"

 

 

 

 

local:RadGridViewExtension.SelectedItemsSource="{Binding AvailableSelectedItems,Mode=TwoWay}">

 

 

 

 

<telerik:RadGridView.Columns>

 

 

 

 

<telerik:GridViewDataColumn DataType="{x:Null}" IsReadOnly="True" IsVisible="True" IsFilterable="False" IsGroupable="False" IsSortable="True" MinWidth="60" UniqueName="PartNumber" Header="Part #" />

 

 

 

 

<telerik:GridViewDataColumn DataType="{x:Null}" IsReadOnly="True" IsVisible="True" IsGroupable="True" IsSortable="True" UniqueName="Description" MinWidth="300" Header="Description"/>

 

 

 

 

</telerik:RadGridView.Columns>

 

 

 

 

<telerik:RadGridView.SortDescriptors>

 

 

 

 

<telerik:SortDescriptor Member="PartNumber" SortDirection="Descending" />

 

 

 

 

</telerik:RadGridView.SortDescriptors>

 

 

 

 

</telerik:RadGridView>

 

 

 

 

</GroupBox>

The problem is it shows the horizontal scroll bar with the desired width and at extreme left for the very first time but once the bar is moved and the source is updated, the scrollbar remains there rather than going to the extreme left (its default position), and its size also is not recalculated.

 

 

Maya
Telerik team
 answered on 15 Jun 2010
3 answers
162 views
Hi,

I am trying to use several radcontextmenu on same xaml page. And graphically it works fine . But on my output I have serveral errors  :

 

 
System.Windows.Data Error: 4 : Cannot find source for binding with reference   
'RelativeSource FindAncestor,   
AncestorType='Telerik.Windows.Controls.RadContextMenu'AncestorLevel='1''.   
BindingExpression:Path=DataContext.SelectIrisV2CodesCommand; DataItem=null;   
target element is 'EventToCommand' (HashCode=11696593); target property is   
'Command' (type 'ICommand')


This error happens when i open successively two different radcontextmenu.
Scenario :
- The first radcontextMenu clicked on, contains only leaves
- The second radcnctextMenu clicked on, contains on first level only root nodes (Role = Submenuheader?)

Below the code of my page :

 

 

<Style x:Key="IrisRadMenuItemStyle" TargetType="{x:Type telerik:RadMenuItem}">   
     <Setter Property="Template">   
        <Setter.Value> 
            <ControlTemplate TargetType="{x:Type telerik:RadMenuItem}">   
                <Grid x:Name="RootElement" Background="{TemplateBinding Background}" Margin="2" >   
                    <i:Interaction.Triggers>   
                        <i:EventTrigger EventName="MouseLeftButtonDown">   
                            <cmd:EventToCommand Command="{Binding DataContext.SelectIrisV2CodesCommand, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerikNavigation:RadContextMenu}}, Mode=OneWay}" CommandParameter="{Binding}" />   
                        </i:EventTrigger>   
                    </i:Interaction.Triggers> 
                        ...   
 
         </Setter.Value>   
    </Setter>   
    <Style.Triggers>   
        <Trigger Property="Role" Value="SubmenuHeader">   
            <Setter Property="Template">   
 
                <Setter.Value>   
                    <ControlTemplate TargetType="{x:Type telerik:RadMenuItem}">   
                    <Grid x:Name="RootElement" Background="{TemplateBinding Background}" Margin="2">   
                    <i:Interaction.Triggers> 
                        <i:EventTrigger EventName="MouseEnter">   
                            <cmd:EventToCommand Command="{Binding DataContext.ShowIrisCommand, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerikNavigation:RadContextMenu}}, Mode=OneWay}" CommandParameter="{Binding}" />   
 
                        </i:EventTrigger>   
                    </i:Interaction.Triggers> 
                    ...  
        </Trigger>   
    </Style.Triggers>   
</Style>   
 
<ToggleButton Grid.Row="1" Grid.Column="2" Width="20" IsChecked="{Binding IsOpen, ElementName=Nav, Mode=TwoWay}">  
    <telerikNavigation:RadContextMenu.ContextMenu > 
        <telerikNavigation:RadContextMenu EventName="MouseLeftButtonDown" Name="Nav"   
ItemContainerStyle="{DynamicResource IrisRadMenuItemStyle}" Style="{DynamicResource IrisRadContextMenuStyle}" ItemsSource="{Binding IrisCodes}" >   
 
            <telerikNavigation:RadContextMenu.ItemTemplate>   
                <HierarchicalDataTemplate ItemsSource="{Binding IrisCodes}" />   
            </telerikNavigation:RadContextMenu.ItemTemplate>   
        </telerikNavigation:RadContextMenu>   
    </telerikNavigation:RadContextMenu.ContextMenu>   
    <Image Source="/Solmis.Client;component/Images/16/view.png" />   
</ToggleButton>   
 
 
...  
 
 
<ToggleButton Grid.Row="2" Grid.Column="2" Width="20" IsChecked="{Binding IsOpen, ElementName=NavCOE, Mode=TwoWay}">   
    <telerikNavigation:RadContextMenu.ContextMenu >   
        <telerikNavigation:RadContextMenu EventName="MouseLeftButtonDown" Name="NavCOE"   
ItemContainerStyle="{DynamicResource IrisRadMenuItemStyle}" Style="{DynamicResource IrisRadContextMenuStyle}" ItemsSource="{Binding IrisCodes}" >   
 
            <telerikNavigation:RadContextMenu.ItemTemplate>   
                <HierarchicalDataTemplate ItemsSource="{Binding IrisCodes}" />   
            </telerikNavigation:RadContextMenu.ItemTemplate>   
        </telerikNavigation:RadContextMenu>   
    </telerikNavigation:RadContextMenu.ContextMenu>   
 
    <Image Source="/Solmis.Client;component/Images/16/view.png" />   
 
</ToggleButton> 

 

 

 


It seams there is only one instance of RadContextMenu for all RadContextMenu i have in my page.. If it's the case, i would know why the role=sumbmenuheader style is also applied on leaves ?

Thank you in advance for your help

Vlad
Telerik team
 answered on 15 Jun 2010
1 answer
91 views
I'd like the ScrollMode to allow us to scroll horizontally in deferred mode and vertically in RealTime, or vice-versa.
Vlad
Telerik team
 answered on 15 Jun 2010
3 answers
112 views
Hi All,

I have previously used an ArrayList as the ItemSource for my chart, this worked correctly
RadChart1.ItemSource = GetData(); 
Where GetData returned the ArrayList.

I know would like to customise the layout of my RadChart, I have done this in XAML
<telerik:RadChart x:Name="RadChart1" telerik:StyleManager.Theme="Vista" UseDefaultLayout="False">            
            <Grid> 
               <Grid.RowDefinitions> 
                   <RowDefinition Height="1*" /> 
                   <RowDefinition Height="6*" /> 
               </Grid.RowDefinitions> 
               <Grid.ColumnDefinitions> 
                   <ColumnDefinition /> 
               </Grid.ColumnDefinitions> 
               <telerik:ChartTitle Content="Sample Report" Grid.Row="0" Grid.Column="0" 
                                   VerticalAlignment="Center" HorizontalAlignment="Center" 
                                   TextElement.FontWeight="Bold" TextElement.FontSize="24" /> 
               <telerik:ChartArea x:Name="ChartArea1" Grid.Row="1" Grid.Column="0" /> 
            </Grid> 
        </telerik:RadChart> 
And now neither RadChart1.ItemSource nor ChartArea1.ItemSource will correctly display any graph data ("No Data Series")

Also I cannot add a dataseries to the dataseries collection using
ChartArea1.DataSeries.Add( 
I get the following error
Error   1   'Telerik.Windows.Controls.Charting.DataSeriesCollection' does not contain a definition for 'Add' and no extension method 'Add' accepting a first argument of type 'Telerik.Windows.Controls.Charting.DataSeriesCollection' 
 

Can anyone offer help on this please?

Rav
Velin
Telerik team
 answered on 14 Jun 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?