Telerik Forums
UI for WPF Forum
1 answer
222 views
<telerik:RadDiagram x:Name="myDiagram" Grid.Row="1" IsBackgroundSurfaceVisible="False" ShapeTemplateSelector="{StaticResource ShapeTempleteSelecterr}"  IsZoomEnabled="False" ScrollViewer.VerticalScrollBarVisibility="Auto" >
            <primitives:ItemInformationAdorner.AdditionalContent>
                <telerik:SettingsPane Diagram="{Binding ElementName=myDiagram}" Template="{StaticResource SettingPaneTemplete}" />
            </primitives:ItemInformationAdorner.AdditionalContent>
        </telerik:RadDiagram>



I have written my custom template for SettingPane but I wants Partial custom. When we select the shape, the settingpane button will show and when we click on that button, settingpane window will show.

so I want only that button, and when I click on that button my custom template will show.

I had tried for that but button not shown, direct template shown.

so how to solve this problem.

 
Petar Mladenov
Telerik team
 answered on 22 Aug 2013
2 answers
171 views
HI,

I want to add the RadDiagramShape dynamically to RadDiagram control but wants to change the ContentTemplete.
<telerik:RadDiagram x:Name="myDiagram">
 
 </telerik:RadDiagram
private void btnAddNewShape_Click(object sender, System.Windows.RoutedEventArgs e)
       {
           DataTemplate templete = new DataTemplate(typeof(RadRichTextBox));
 
           this.myDiagram.AddShape(new RadDiagramShape() { });
       }


But the content editor not show RadRichTextBox, It show normal Content Property as String.


So How to add dynamically ContentTemplete of RadDiagramShape


Thanks

Sopan Vaidya
Sopan
Top achievements
Rank 1
 answered on 22 Aug 2013
3 answers
147 views
How can I lock the tile position, so maximized tiles return to their original position? I see someone created a feature request for silverlight in 2010 for the same issue, but nothing in WPF.
Tina Stancheva
Telerik team
 answered on 21 Aug 2013
1 answer
942 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
344 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
392 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
227 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
123 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
149 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
222 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
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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?