<telerik:RadTreeView MinWidth="150" |
IsLineEnabled="True" |
ItemsOptionListType="CheckList" |
x:Name="leftTree" |
IsTriStateMode="True" |
IsOptionElementsEnabled="True" |
ItemTemplate="{StaticResource dataTemplate}"/> |
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
<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
<
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.
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') |
<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> |
RadChart1.ItemSource = GetData(); |
<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> |
ChartArea1.DataSeries.Add( |
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' |