I have DragAndDrop enabled on a RadGridView. This works, but when I want to scroll or I try to resize the column header a dragAndDrop action is also started that prevents the scrolling or resizing.
How can I detect that the DragAndDrop event started on a scrollbar or a column header and stop the event?
Solutions I found on the telerik page are all with the old RadDragDropManager and not with the DragDropManager that should now be used. I can't find the equivalent function for e.GetElement<T> that was called on the in the DragDropQueryEventArgs. This would be called in the DragInitializeHandler.
Hi,
I'm facing this CPU usage increases problem when mouse over on the GridView and the application started consuming CPU usage percentage almost 28% to 35% .
By using Telerik SP1-R2-2017 Telerik Controls for WPF.
Here I've tested it on a machine having these specifications,
Windows 8.1 Sony Vaio Core-i7 3537u 3rd Generation ,System Model : svt131317cvs.
Please give me solution to fix these issues regarding to GridView .
Thanks,
I use the Telerik libraries 2014.2.811.45.
I have a tree which can be edited by the user. The user as well can adjust the width of the tree and make it narrow enough to cut off some of the node names.
This post here (http://www.telerik.com/forums/treeview-tooltips-instead-of-horizontal-scroll-bar) seems to solve the problem but is unfortunately outdated. The API has changed meanwhile - the functions/properties don't exist any more.
Still I tried to adjust the solution to my library version but I couldn't get it work. The solution gets the bounds of the tree and each of its items and compares them. This seems to be an easy and adequate solution which I would like to use as well. Trying out different properties showed me the following: Width seems to return NaN. ActualWidth seems to return pretty much the width of the tree whether it is called on the tree or the node. I would expect it to return the width of the node name if called on the node. Further I could not find a property to get the right border of the tree/items.
How can I solve this problem with my telerik libraries?
Yet no matter what I do I cannot get the Tooltips to work - Tooltips are critical for our functionality and we need to show the datapoint that is closest in the surface plot in order to satisfy our need.
https://github.com/telerik/xaml-sdk/blob/master/ChartView3D/WPF/ValueGradientColorizer/SurfaceGradients.xaml
I am using this project in Windows 10 professional with Telerik UI for WPF version 2017.2.629.0
A quick response would be appreciated since I will have to present a report tomorrow comparing Telerik with alternative 3D visualization libraries.
Kind regards
<
UserControl
x:Class
=
"ValKueGradientColorizer.SurfaceGradients"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
mc:Ignorable
=
"d"
d:DesignHeight
=
"300"
d:DesignWidth
=
"300"
>
<
Grid
>
<
telerik:RadCartesianChart3D
>
<
telerik:RadCartesianChart3D.TooltipTemplate
>
<
DataTemplate
>
<
StackPanel
Background
=
"Fuchsia"
MinHeight
=
"100"
MinWidth
=
"100"
>
<
StackPanel
Orientation
=
"Horizontal"
Background
=
"Yellow"
>
<
TextBlock
Text
=
"X - "
FontWeight
=
"Bold"
Foreground
=
"Blue"
/>
<
TextBlock
Text
=
"{Binding XValue}"
/>
</
StackPanel
>
<
StackPanel
Orientation
=
"Horizontal"
Background
=
"Yellow"
>
<
TextBlock
Text
=
"Y - "
FontWeight
=
"Bold"
/>
<
TextBlock
Text
=
"{Binding YValue}"
Foreground
=
"Blue"
/>
</
StackPanel
>
<
StackPanel
Orientation
=
"Horizontal"
Background
=
"Yellow"
>
<
TextBlock
Text
=
"Z - "
FontWeight
=
"Bold"
/>
<
TextBlock
Text
=
"{Binding ZValue}"
Foreground
=
"Blue"
/>
</
StackPanel
>
</
StackPanel
>
</
DataTemplate
>
</
telerik:RadCartesianChart3D.TooltipTemplate
>
<
telerik:RadCartesianChart3D.XAxis
>
<
telerik:LinearAxis3D
/>
</
telerik:RadCartesianChart3D.XAxis
>
<
telerik:RadCartesianChart3D.YAxis
>
<
telerik:LinearAxis3D
/>
</
telerik:RadCartesianChart3D.YAxis
>
<
telerik:RadCartesianChart3D.ZAxis
>
<
telerik:LinearAxis3D
/>
</
telerik:RadCartesianChart3D.ZAxis
>
<
telerik:RadCartesianChart3D.Grid
>
<
telerik:CartesianChart3DGrid
/>
</
telerik:RadCartesianChart3D.Grid
>
<
telerik:RadCartesianChart3D.Behaviors
>
<
telerik:Chart3DTooltipBehavior
InitialShowDelay
=
"200"
ShowDuration
=
"200000"
>
</
telerik:Chart3DTooltipBehavior
>
<
telerik:Chart3DCameraBehavior
/>
</
telerik:RadCartesianChart3D.Behaviors
>
<
telerik:RadCartesianChart3D.Series
>
<
telerik:SurfaceSeries3D
XValueBinding
=
"X"
YValueBinding
=
"Y"
ZValueBinding
=
"Z"
ItemsSource
=
"{Binding}"
ToolTipService.ShowOnDisabled
=
"True"
>
<
telerik:SurfaceSeries3D.Colorizer
>
<
telerik:SurfaceSeries3DValueGradientColorizer
IsAbsolute
=
"True"
>
<
telerik:SurfaceSeries3DValueGradientColorizer.GradientStops
>
<
GradientStopCollection
>
<
GradientStop
Offset
=
"-100"
Color
=
"Blue"
/>
<
GradientStop
Offset
=
"50"
Color
=
"Green"
/>
<
GradientStop
Offset
=
"100"
Color
=
"Red"
/>
</
GradientStopCollection
>
</
telerik:SurfaceSeries3DValueGradientColorizer.GradientStops
>
</
telerik:SurfaceSeries3DValueGradientColorizer
>
</
telerik:SurfaceSeries3D.Colorizer
>
<
telerik:SurfaceSeries3D.ToolTip
>
<
StackPanel
MinWidth
=
"200"
MinHeight
=
"200"
Background
=
"Fuchsia"
><
TextBlock
Background
=
"Aqua"
Foreground
=
"Black"
>100000</
TextBlock
></
StackPanel
>
</
telerik:SurfaceSeries3D.ToolTip
>
<
telerik:SurfaceSeries3D.TooltipTemplate
>
<
DataTemplate
>
<
StackPanel
Background
=
"Fuchsia"
MinHeight
=
"100"
MinWidth
=
"100"
>
<
StackPanel
Orientation
=
"Horizontal"
Background
=
"Yellow"
>
<
TextBlock
Text
=
"X - "
FontWeight
=
"Bold"
Foreground
=
"Blue"
/>
<
TextBlock
Text
=
"{Binding XValue}"
/>
</
StackPanel
>
<
StackPanel
Orientation
=
"Horizontal"
Background
=
"Yellow"
>
<
TextBlock
Text
=
"Y - "
FontWeight
=
"Bold"
/>
<
TextBlock
Text
=
"{Binding YValue}"
Foreground
=
"Blue"
/>
</
StackPanel
>
<
StackPanel
Orientation
=
"Horizontal"
Background
=
"Yellow"
>
<
TextBlock
Text
=
"Z - "
FontWeight
=
"Bold"
/>
<
TextBlock
Text
=
"{Binding ZValue}"
Foreground
=
"Blue"
/>
</
StackPanel
>
</
StackPanel
>
</
DataTemplate
>
</
telerik:SurfaceSeries3D.TooltipTemplate
>
</
telerik:SurfaceSeries3D
>
</
telerik:RadCartesianChart3D.Series
>
</
telerik:RadCartesianChart3D
>
</
Grid
>
</
UserControl
>
I am using a RadColumnSparkline inside a RadTimebar but can't style the columns so they look a bit better than out of the box.
I want the columns to have a margin between each other, rounded tops and a dark border color.
I've already tried to overwrite the telerik column style to tackle the rectangle for the column but no column was shown:
<telerik:RadColumnSparkline.Resources>
<Style TargetType="telerik:Column" BasedOn="{StaticResource ColumnStyle}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="telerik:Column">
<Rectangle Stroke="Black" Margin="5,0,5,0" Fill="{TemplateBinding Fill}"/>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</telerik:RadColumnSparkline.Resources>
I've attached an image of how they currently look .
This is the code for the timebar:
<telerik:RadTimeBar
Grid.Column="1"
x:Name="TimeBar"
PeriodStart="{Binding AppearanceSearchOverview.PeriodStart, Converter={StaticResource DateTimeToLocalTimeConverter}}"
PeriodEnd="{Binding AppearanceSearchOverview.PeriodEnd, Converter={StaticResource DateTimeToLocalTimeConverter}}"
VisiblePeriodStart="{Binding ElementName=TimeBar, Path=PeriodStart}"
VisiblePeriodEnd="{Binding ElementName=TimeBar, Path=PeriodEnd}"
Selection="{Binding Path=TimeRange, Converter={StaticResource TelerikTimeRangeConverter}, Mode=TwoWay}"
MinSelectionRange="00:01:00"
MaxSelectionRange="72:00:00"
MinZoomRange="00:15:00"
Background="{StaticResource PanelBackgroundBrush}"
SelectionTitleFormatString="{}{0:HH':'mm':'ss} - {1:HH':'mm':'ss}"
IsSnapToIntervalEnabled="False">
<telerik:RadTimeBar.Intervals>
<telerik:DayInterval />
<telerik:HourInterval />
<telerik:MinuteInterval IntervalSpans="5" />
</telerik:RadTimeBar.Intervals>
<Grid>
<telerik:RadColumnSparkline
AutoRange="False"
ItemFill="#3D6F99"
MinYValue="{Binding AppearanceSearchOverview.MinValue}"
ItemsSource="{Binding AppearanceSearchOverview.Results}"
XValuePath="X"
MinXValue="{Binding ElementName=TimeBar, Path=PeriodStart}"
MaxXValue="{Binding ElementName=TimeBar, Path=PeriodEnd}"
YValuePath="Y"/>
</telerik:RadTimeBar>
Hello Telerik Team,
I want to add a button on a gridview column header. For that I wrote a custom control that inherits from GridViewDataColumn. The custom control sets the GridViewHeaderCellStyle and implements a command.
Here the style:
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
xmlns:controls="clr-namespace:MyControls">
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/Telerik.Windows.Themes.Office2016;component/Themes/Telerik.Windows.Controls.GridView.xaml" />
</ResourceDictionary.MergedDictionaries>
<Style TargetType="telerik:GridViewHeaderCell" BasedOn="{StaticResource GridViewHeaderCellStyle}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
<StackPanel>
<TextBlock Text="myText"/>
<telerik:RadButton Content="myButton" Command="{Binding TestCommand, RelativeSource={RelativeSource FindAncestor, AncestorType=controls:hGridViewDataColumn}}"/>
</StackPanel>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>
And the custom control:
namespace MyControls
{
public class hGridViewDataColumn : GridViewDataColumn
{
static hGridViewDataColumn()
{
DefaultStyleKeyProperty.OverrideMetadata(typeof(hGridViewDataColumn), new FrameworkPropertyMetadata(typeof(hGridViewDataColumn)));
}
public hGridViewDataColumn()
{
HeaderCellStyle = FindResource("hGridViewHeaderCellStyle") as Style;
}
private ICommand _testCommand;
public ICommand TestCommand
{
get
{
return ...;
}
}
}
}
Unfortunately the binding doesn't work. What's wrong?
Hello,
I'm using Telerik 2017.2.614.45.NoXaml but the Vertical and Horizontal scrollbars are not appearing for RadRichTextBox. See attached the XAML and the Telerik dlls that are referenced. What else is missing?
Also our application has Theme which applies to all other Telerik controls except RadRichTextBox. Any idea why?
Hi Team,
I am looking to read the content of a specific page from RADRichTextBox with below features
1. Define Page Start ( from page number) and Read all Data(Text, Image, Symboles etc) up to a given document position. Identify lines, paragraph, Image etc individually.
2. Track location changes of any content or image, for example, User inserted any image but later on changes the location of image in RichTextBox
3. How can we search lines, Images and get the location coordinates of same?
4. How to know the page properties like font, size, margins etc.
5. how to validate the content of the PDF page from another PDF stream.
6. Merge multiple PDF streams( generated by another source)
Kindly help me to know on this and let me know for any question.