Telerik Forums
UI for WPF Forum
1 answer
106 views
Hi,
I wanted to add a title to the Cartesian Chart and used the default template to add a textblock as below :

 <Style x:Key="RadCartesianChartStyle" TargetType="{x:Type controls:ExtendedRadCartesianChart}">
                           <Setter Property="MinWidth" Value="100"/>
                           <Setter Property="MinHeight" Value="100"/>
                           <Setter Property="Background" Value="Transparent"/>
                           <Setter Property="HorizontalContentAlignment" Value="Center"/>
                           <Setter Property="VerticalContentAlignment" Value="Center"/>                                
                           <Setter Property="Template">
                           <Setter.Value>
                           <ControlTemplate TargetType="{x:Type controls:ExtendedRadCartesianChart}">
                           <Border x:Name="layoutRoot" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}">
                           <Grid>
                                            <StackPanel Orientation="Vertical">
                                              <TextBlock Text="This is a test Title" HorizontalAlignment="Center"></TextBlock>
                             <ContentPresenter x:Name="emptyContent" ContentTemplate="{TemplateBinding EmptyContentTemplate}" Content="{TemplateBinding EmptyContent}" 
                                                                HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" 
                                              IsHitTestVisible="False" 
                                              Visibility="Collapsed" 
                                              VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                             <Canvas x:Name="adornerContainer" Background="Transparent" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                             <Canvas x:Name="labelContainer" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                             <Canvas x:Name="renderSurface" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                             <Border x:Name="plotAreaDecoration" Style="{TemplateBinding PlotAreaStyle}"/>
                             </Canvas>
                             </Canvas>
                             </Canvas>
                                           </StackPanel>
                           </Grid>
                           </Border>
                           </ControlTemplate>
                           </Setter.Value>
                           </Setter>
                           <Setter Property="TrackBallLineStyle">
                           <Setter.Value>
                           <Style TargetType="{x:Type Polyline}">
                           <Setter Property="Stroke" Value="#FF828282"/>
                           <Setter Property="StrokeThickness" Value="2"/>
                           </Style>
                           </Setter.Value>
                           </Setter>
                           <Setter Property="DragZoomBorderStyle">
                           <Setter.Value>
                           <Style TargetType="{x:Type Border}">
                           <Setter Property="BorderBrush" Value="#FF828282"/>
                           <Setter Property="BorderThickness" Value="1"/>
                           <Setter Property="Background" Value="#40FFFFFF"/>
                           </Style>
                           </Setter.Value>
                           </Setter>
                  </Style>

Now when I move the mouse over the chart, the vertical tracker line doesn't appear until I move the mouse over the series line and then the trackerball information appears fine. What property do I need to set  to allow the trackerball vertical line to appear as it appears before overriding with this control template?
Tina Stancheva
Telerik team
 answered on 22 Oct 2013
1 answer
160 views
I have a radpanegroup docked to the right hand side and the tab headers are vertical.
 


Is there a way to set the tab headers to be horizontal?

Thanks

Andrew

Heres my xaml:
<telerik:RadSplitContainer x:Name="rsc"  Width="500" InitialPosition="DockedRight">
                    <telerik:RadPaneGroup x:Name="rpg" >
                        <telerik:RadPane x:Name=
"materialsTab"  Header="Materials" IsPinned="False" CanUserClose="False" GotFocus="RadPane_GotFocus_1">

Kalin
Telerik team
 answered on 22 Oct 2013
3 answers
259 views
Hello,

I use your framework for one of our projects, to create several custom planning view.

In one of these view, I need to insert timeline in gantView item, which work perfectly.

However, I do not have control of the size of each row (item) of the ganttView. Indeed, the size of row is calculated based on the content of the left column (TreeColumnDefinition and columnDefinition), but not in the real data (DataTemplate of ganttview). The custom data template have not sized fixed but a size depending of number items attached to the timeline (the timeline present in each item of my GanttView).
I  cheat by adding a rectangle in one of my column definition, with the height of this rectangle calculated with the number of item of timeline attached (with a converter). 
The number of item depending of user actions in the view.
it seemed to work perfectly, at the beginning the size is standard, the user add an item, the converter launch, the height of the rectangle increase so the row increase like I expected.
But the contrary is not true, when the user delete an item, the rectangle height decrease, but not the row!

There is other solution to manage better the height of the ganttView Item ? 

Thanks For your response

Sincerely,

Julien Gourdon

PS  : Sorry for my english I'm french
Polya
Telerik team
 answered on 22 Oct 2013
1 answer
141 views

I'm sure this has been asked before but I cannot find any references, is it possible to have a column of youtube videos that display and will play if the user clicks on the video in the cell?    If so how would I go about doing this?

Thanks

Alan
Dimitrina
Telerik team
 answered on 22 Oct 2013
3 answers
363 views
when i updated recently from the 2012 Q3 release to the 2013 Q2 release, i notice the following difference in appearance of the application button.  we set ApplicationButtonImageSource to a png in our project.  the image still shows up fine, but the clipping is different.  previously, the height of the application button + tab portion was high enough to fit the tabs and cropped the image in the application button.  now, the image expands the height of that portion of the ribbonview to fully fit the image.

for instance, say we have a 100x100 image, and the tabs need to be 50 pixels high to accommodate the text.  previously, the application-button-plus-tabs area would be 50 pixels high and the 25th through 75th rows of the image were displayed (so, cropped, not scaled, and centered on the image).  now, it is 100 pixels high and the image is fully visible..

how can i restore the previous behavior, please?

images of new and old behavior attached.

thanks!

-david
Stefan
Telerik team
 answered on 22 Oct 2013
17 answers
358 views
Dear Telerik,

Today we have upgraded to version 'RadControls_for_WPF_2012_1_0326'.
We have encountered a problem after upgrading.
The Aggregate Sumfunction of our RadTreeListView always displays 0 instead of the right sum.

Did something change in the new version ?

Regards,
Gert



<
telerik:GridViewDataColumn DataMemberBinding="{Binding CalVal,StringFormat=N,ConverterCulture=DE}" Header="Σ" Width="Auto" TextAlignment="Right" FooterTextAlignment="Right"  IsReadOnly="True">
<telerik:GridViewDataColumn.CellStyle>
          <Style TargetType="telerik:GridViewCell">
               <Setter Property="Background" Value="{Binding parentItem, Converter={StaticResource backColorConvertor},ConverterParameter=Summe}" />
           </Style>
 </telerik:GridViewDataColumn.CellStyle>
<telerik:GridViewDataColumn.AggregateFunctions>
            <telerik:SumFunction SourceField="CalVal" Caption="Sum: " />
 </telerik:GridViewDataColumn.AggregateFunctions>
</telerik:GridViewDataColumn>
Yoan
Telerik team
 answered on 22 Oct 2013
2 answers
157 views
Hi,

I have a WPF radpropertygrid in my application.  It has a lot of columns some of which remain hidden because of the limited size of the propertygrid.  Scrollbar is available to view the same.

Now, when I record a Coded UI Test to click one of the hidden columns, it does not click it when the column is hidden.

I am calling SetFocus() method on the column header before clicking it but it does not work.

Regards,
Vijay
Ivan Ivanov
Telerik team
 answered on 22 Oct 2013
3 answers
482 views
Hi, I am able to show a title in the RadChart, something like this:

Chart.DefaultView.ChartTitle.Content = "Title";

or

<telerik:RadChart.DefaultView>
                <telerik:ChartDefaultView>
                    <telerik:ChartDefaultView.ChartTitle>
                        <telerik:ChartTitle Content="Title" HorizontalAlignment="Center">

Is it possible to show a title in a RadPolarChart, RadRadialGauge and RadCartesianChart?

I would like to add a title for those kind of charts if possible.

Thanks,

Alberto
Evgenia
Telerik team
 answered on 22 Oct 2013
6 answers
344 views
Is there a way to style my RadColorPicker to get rid of the glyph of the little "A" in the expander? Look at the file I attached. I'm not using it to change the colour of a font. This is confusing my user. I just want a block that has the selected colour in it.
Petar Mladenov
Telerik team
 answered on 22 Oct 2013
1 answer
187 views
Hi,

i use the RadTabControl like your DataBinding-Example. This works great, but how do i add a New Tab on Page_Load?
Second Problem, how to load the Content now and not after selecting the tab?

Thanks a lot
Best Regards
Rene
Pavel R. Pavlov
Telerik team
 answered on 22 Oct 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
InlineAIAssistant
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?