Telerik Forums
UI for WPF Forum
1 answer
868 views
I have a  RadTreeView and I am trying to use stye triggers for disabling few nodes:
<telerikNavigation:RadTreeView  ItemTemplate="{StaticResource HierarchyItemsTreeItemTemplate}">
        <Style TargetType="telerikNavigation:RadTreeView">
            <Style.Triggers>
                <DataTrigger Binding="{Binding RelativeSource={RelativeSource FindAncestor,
    AncestorType=TreeViewItem}, Converter={StaticResource converter}}"
    Value="true">
                     <Setter Property="IsEnabled" Value="false"/>
                 </DataTrigger>
            </Style.Triggers>
        </Style>
    </telerikNavigation:RadTreeView >

But this gives me error: The attachable property Triggers was not found in Style.  Is there any alternate approach and Triggers are being obsolete?
Tina Stancheva
Telerik team
 answered on 21 Aug 2013
1 answer
312 views
Hi


I have a RadTreeView bound to an observable collection. The width is specified as Auto so I would expect  that the tree view should resize dynamically.

So what I am seeing is


1) First set of data is bound, with an Items whose content is long. The treeview expands to an appropriate width.
2) The data bound is changed so that all the items are a couple character. The treeview  is still the same width

I would expect the width to change in conjunction with the size of the data bound

Cheers

Arthur
Tina Stancheva
Telerik team
 answered on 21 Aug 2013
3 answers
353 views
hi 

I was added RadDatePicker to Footer with below code i want to display the default  Current date as "System.Date.Now";  but the date is not binding to that footer .

the same RadDatePicker i have in my form and i need to bind the same thing "System.Date.Now" it is binding but in footer it is not binding please help me


<TelerikGrid:GridViewDataColumn  Header="Qty1" MinWidth="100" Width="110"  TextAlignment="Right" DataMemberBinding="{Binding Qty1, Mode=TwoWay}" DataFormatString="{}{0:N2}">
                                                          <TelerikGrid:GridViewDataColumn.Footer>
                                                                <StackPanel Orientation="Vertical" Height="50" HorizontalAlignment="Left">
                                                                    <telerikInput:RadDatePicker x:Name="dt" HorizontalAlignment="Center"  SelectedValue="{Binding dat}" Margin="11,0,0,0" />
                                                                    <CheckBox  Height="16" Name="checkBox1"   IsChecked="{Binding Path=CurrentItem.InActive,Mode=TwoWay}" HorizontalAlignment="Center" />
                                                                </StackPanel>
                                                            </TelerikGrid:GridViewDataColumn.Footer>
                                                           </TelerikGrid:GridViewDataColumn>

Kalin
Telerik team
 answered on 21 Aug 2013
1 answer
172 views
Hi,

i'm using your "Grouping and Filtering" example as base. Now I have to add a TreeListView where i load all departments with its employees.
Each employee is one Group. Creating the TreeListView with it's items is not the problem. But how do i add a command, wich makes me the grouping?

Thanks
Best Regards
ITA
Kalin
Telerik team
 answered on 21 Aug 2013
1 answer
111 views
Hi

Is there a event that can detect when I drag one shape over another shape within diagram ?

Thanks, Dave
Zarko
Telerik team
 answered on 21 Aug 2013
2 answers
134 views
Hi all,

I have successful customized my bar chart items, but now there is no selection marker visible. Here some code:
<Style x:Key="CustomBarStyle" TargetType="telerikCharting:Bar">
    <Setter Property="Template">
        <Setter.Value>
            <ControlTemplate TargetType="telerikCharting:Bar">
                <Canvas>
                    <Rectangle
                        x:Name="PART_DefiningGeometry"
                        Height="{TemplateBinding ItemActualHeight}"
                        Width="{TemplateBinding ItemActualWidth}"
                        Fill="Blue"  />
                    <Canvas.RenderTransform>
                        <ScaleTransform x:Name="PART_AnimationTransform" ScaleY="0" />
                    </Canvas.RenderTransform>
                </Canvas>
            </ControlTemplate>
        </Setter.Value>
    </Setter>
</Style>
This is the style for my items. Fill is normaly a property of my item class.

<telerik:RadChart
    x:Name="Chart" Grid.ColumnSpan="2" ItemsSource="{Binding BarChartList}">
 
    <telerik:RadChart.DefaultView>
        <telerikCharting:ChartDefaultView ChartLegendPosition="Bottom">
            <telerikCharting:ChartDefaultView.ChartLegend>
                <telerikCharting:ChartLegend Header="Legend" UseAutoGeneratedItems="false" ItemsPanelOrientation="Horizontal" >
                    <telerikCharting:ChartLegend.Items>
                        <telerikCharting:ChartLegendItem Label="label1" MarkerFill="Green" />
                        <telerikCharting:ChartLegendItem Label="label2" MarkerFill="Red" />
                        <telerikCharting:ChartLegendItem Label="label3" MarkerFill="Blue" />
                        <telerikCharting:ChartLegendItem Label="label4" MarkerFill="Orange" />
                    </telerikCharting:ChartLegend.Items>
                </telerikCharting:ChartLegend>
            </telerikCharting:ChartDefaultView.ChartLegend>
 
            <telerikCharting:ChartDefaultView.ChartArea>
                <telerikCharting:ChartArea ItemClick="ChartAreaItemClick" Annotations="{Binding BarChartAnnotations}">
                    <telerikCharting:ChartArea.AxisY>
                        <telerikCharting:AxisY AutoRange="False" MinValue="0" MaxValue="{Binding BarChartMax}" Step="10" />
                    </telerikCharting:ChartArea.AxisY>
                    <telerikCharting:ChartArea.AxisX>
                        <telerikCharting:AxisX AutoRange="False" MinValue="1" MaxValue="{Binding BarChartList.Count}" Step="1" />
                    </telerikCharting:ChartArea.AxisX>
                </telerikCharting:ChartArea>
            </telerikCharting:ChartDefaultView.ChartArea>
             
        </telerikCharting:ChartDefaultView>
    </telerik:RadChart.DefaultView>
 
    <telerik:RadChart.AnimationSettings>
        <telerikCharting:AnimationSettings ItemDelay="0:0:0" ItemAnimationDuration="0:0:0.2" />
    </telerik:RadChart.AnimationSettings>
 
    <telerik:RadChart.DefaultSeriesDefinition>
        <telerikCharting:BarSeriesDefinition x:Name="BarSeries" ItemStyle="{StaticResource CustomBarStyle}">
            <telerikCharting:BarSeriesDefinition.InteractivitySettings>
                <telerikCharting:InteractivitySettings SelectionMode="Single" SelectionScope="Item" />
            </telerikCharting:BarSeriesDefinition.InteractivitySettings>
        </telerikCharting:BarSeriesDefinition>
    </telerik:RadChart.DefaultSeriesDefinition>
 
    <telerik:RadChart.SeriesMappings>
        <telerikCharting:SeriesMapping SeriesDefinition="{Binding ElementName=BarSeries}">
            <telerikCharting:SeriesMapping.ItemMappings>
                <telerikCharting:ItemMapping FieldName="Value" DataPointMember="YValue" />
            </telerikCharting:SeriesMapping.ItemMappings>
        </telerikCharting:SeriesMapping>
    </telerik:RadChart.SeriesMappings>
 
</telerik:RadChart>
And this is the chart control. I can select each item, ChartAreaItemClicked is fired, but there is noch border around the items. How can I place a csutom style for that?

Kind regards,
dpl
dpl
Top achievements
Rank 1
 answered on 21 Aug 2013
5 answers
193 views
Hi telerik,

Using the old implementation of drag-and-drop, we were able to copy-drag by catching the press of Ctrl key during the drag.

How do you recommend enabling this functionality using the new dragdropmanager?

Yours,

Anders, Denmark
Hristo
Telerik team
 answered on 21 Aug 2013
5 answers
453 views
Hi telerik,

After move to the new way of handling drag-and-drop, we've encountered a problem. Basically, we record in our viewmodel object behind the individual treeitem who the parent is. But currently, after the move to new drag-and-drop implementation, it would appear that the dragged item is repositioned 'out-of-the-box' and keeps it's viewmodel -- but in out world, this is now a wrong object.

Is there a way to prevent the drag-and-drop-manager from doing the actual move? I'd like to do it manually, updating the viewmodel and then notifying the treeview that sending/receiving items have changed...

Thanks,

Anders, Denmark
Hristo
Telerik team
 answered on 21 Aug 2013
1 answer
158 views
Hi,

I add a SelectAllCommand.Execute on my RadListBox:
RadListBox.SelectAllCommand.Execute(null, sender as RadListBox)

I Need this for a RadTreeListView?

Thanks
Best Regards
Rene
Maya
Telerik team
 answered on 21 Aug 2013
2 answers
68 views
One hour ago I updated WPF RadControls to version "2013.2.724.45" and also my current project where I use Windows 8 theme for my RadMap. It seems that now there is a bug in that theme because I cannot drag, zoom or do anything else with my map. Other themes work fine.
Andrey
Telerik team
 answered on 21 Aug 2013
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?