Telerik Forums
UI for WPF Forum
3 answers
108 views

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.

Dilyan Traykov
Telerik team
 answered on 12 Sep 2017
1 answer
111 views

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,

Martin Ivanov
Telerik team
 answered on 12 Sep 2017
5 answers
210 views

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?

Martin Ivanov
Telerik team
 answered on 11 Sep 2017
4 answers
186 views
Hi, we are evaluating DevCraft - the most critical portion that will affect our decision is the 3D charts functionality in WPF for our software. I used the WPF sample code in this https://github.com/telerik/xaml-sdk/tree/master/ChartView3D/WPF and successfully created a Surface Plot with colorizer.

 

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. 

I followed the directions in http://docs.telerik.com/devtools/wpf/controls/radchartview3d/features/behaviors/tooltipbehavior3d with no success.
 
The code below is my modified version of the code in the github to add tooltips.

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:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             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>
Dinko | Tech Support Engineer
Telerik team
 answered on 11 Sep 2017
4 answers
133 views

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>

Sia
Telerik team
 answered on 11 Sep 2017
1 answer
126 views
When the search request is completed, i get the response "The underlying connection was closed: A connection that was expected to be kept alive was closed by the server." it was working correctly more than years but in the recent few days, it is not working and i get the above error response. please let me know what i do to this issue
Petar Mladenov
Telerik team
 answered on 11 Sep 2017
3 answers
995 views

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?

 

Stefan
Telerik team
 answered on 09 Sep 2017
2 answers
489 views

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?

Sri
Top achievements
Rank 1
 answered on 08 Sep 2017
1 answer
351 views

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.

 

 

Tanya
Telerik team
 answered on 08 Sep 2017
1 answer
265 views
How to add Expander button before items on Rad TreeView. Whart is event when click Expander button to expanding.
Dinko | Tech Support Engineer
Telerik team
 answered on 08 Sep 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?