Telerik Forums
UI for WPF Forum
3 answers
209 views
Hi,

I'm using Telerik V2014.2.729.40 and I created a UserControl which contain only a PdfViewer. In my UserControl I have many methods to manipulate the PDF (ie: Print, GotoPage, PageUp, PageDown, FirstPage, LastPage, etc...). One of my method is to add scalling to the PDF (ie: 10%, 25%, 50%, 75%, 100%, 150%, 200%, 500%, 1000% and 2000%). I would like to know how I can bind the value passed to my ScaleFactor (string pScale) to the PDFViewer.

Thank's
Alain
Deyan
Telerik team
 answered on 06 Nov 2014
1 answer
125 views
Hi.

Additionally, I have a question.

It is event about RadCartesianChart.

I want to occur event when data of chart is changed.

example code part. 

------------------------------------------------------------------------------------------------------------------------

chart.xaml
<telerik:RadCartesianChart.SeriesProvider>
                <telerik:ChartSeriesProvider Source="{Binding Series}">
                    <telerik:ChartSeriesProvider.SeriesDescriptors>
                        <telerik:CategoricalSeriesDescriptor ItemsSourcePath="Data" ValuePath="Value" CategoryPath="LocalTime" >


chartViewModel.cs
Series type is ObservableCollection<TrendSeries>

    public class TrendSeries
    {
        public string Name { get; set; }
        public ObservableCollection<TrendData> Data { get; set; }
        public string Unit { get; set; }
        public short Place { get; set; }
    }

    public class TrendData
    {
        public double Value { get; set; }
        public short Place { get; set; }
        public string LineName { get; set; }
        public string Time { get; set; }
        public string Color { get; set; }
        public DateTime LocalTime { get; set; }
    }

in timer event(tick)

........
ObservableCollection<TrendData> data = Series[i].Data;

data.Add(....)

------------------------------------------------------------------------------------------------------------------------

Finally, when 'data' is changed, some event occur.

What should I do for it?
Pavel R. Pavlov
Telerik team
 answered on 06 Nov 2014
1 answer
187 views
When using the ColorEditor, there is an option to hide or collapse the Alpha slider. However, the user can still alter alpha settings in the hex representation TextBox. How can I prevent this? I would still like the user to be able to interact with the TextBox, but I don't want them to change the color's transparency.
Pavel R. Pavlov
Telerik team
 answered on 06 Nov 2014
3 answers
99 views
Hi,

I just update to Q3 2014.
RadDiagram has a style in a dictionary like this

<Style TargetType="XDGT:XDiagram" >
    <Setter Property="RouteConnections" Value="True" />
    <Setter Property="AllowCopy" Value="False" />
    <Setter Property="AllowCut" Value="False" />
    <Setter Property="AllowDelete" Value="False" />
    <Setter Property="AllowPaste" Value="False" />
    <Setter Property="AllowDrop" Value="False" />
    <Setter Property="IsConnectorsManipulationEnabled" Value="False" />
    <Setter Property="IsInformationAdornerVisible" Value="False" />
    <Setter Property="IsManipulationAdornerVisible" Value="False" />
    <Setter Property="IsResizingEnabled" Value="False" />
    <Setter Property="IsRotationEnabled" Value="False" />
    <Setter Property="IsSnapToItemsEnabled" Value="False" />
    <Setter Property="IsEditable" Value="False" />
    <Setter Property="IsSnapToGridEnabled" Value="True" />
    <Setter Property="ActiveTool" Value="PointerTool" />
    <Setter Property="SelectionMode" Value="Single" />
    <Setter Property="IsBackgroundSurfaceVisible" Value="True" />
    <Setter Property="RectSelectionMode" Value="Partial" />
    <Setter Property="HorizontalAlignment" Value="Stretch" />
    <Setter Property="MinWidth" Value="500" />
    <Setter Property="telerik:DiagramSurface.IsVirtualizing" Value="False" />
    <Setter Property="telerik:DiagramAnimations.IsPanAnimationEnabled" Value="False" />
    <Setter Property="telerik:DiagramAnimations.IsZoomAnimationEnabled" Value="False" />
    <Setter Property="telerik:DiagramAnimations.AnimationDuration" Value="0.01" />
    <Setter Property="Primitives:BackgroundPageGrid.IsGridVisible" Value="False" />
    <Setter Property="Primitives:BackgroundGrid.IsGridVisible" Value="True" />
    <Setter Property="Primitives:BackgroundGrid.LineStroke" Value="#060000ff" />
    <Setter Property="Primitives:BackgroundGrid.CellSize" Value="90,90" />
</Style>

BEFORE the update Routing worked - after the update I just had straight lines.
Adding RouteConnections="true" directly with the control made it work again.

So this is just informational.

Manfred
Zarko
Telerik team
 answered on 06 Nov 2014
6 answers
260 views
We want to connect two ends of a RadDiagramConnection using a collection of points in the domain that can vary.  So it be useful to bind directly to the ConnectionPoints collection in the XAML.  Any way to do this?
Fabio
Top achievements
Rank 1
 answered on 06 Nov 2014
3 answers
145 views
Hi Telerik,

I have a problem, i want to use the property Direct2DRenderOptions. But that property does not show up, see attached image.

When i build the application using that property i get the error "The tag 'Direct2DRenderOptions' does not exist in XML namespace 'http://schemas.telerik.com/2008/xaml/presentation'."

I am using the Telerik version 2014.2.617.40.

I have followed the instructions on the link below:
http://www.telerik.com/help/wpf/radchartview-features-rendering.html

So is this property removed? Or does this rendermode not exist for ScatterLineSeries?

Best regards,
Jeppe
Unisense
Top achievements
Rank 1
 answered on 06 Nov 2014
1 answer
288 views
How do i go about drawing a simple line, in the diagram?

I only want i line with only two selection/resize point?

Do you have a example or something, have tried using both PathTool and PencilTool, with no luck.

/Anders
Pavel R. Pavlov
Telerik team
 answered on 06 Nov 2014
3 answers
221 views
Hi,

After upgrading telerik dll from version "2011.1.0315.35" to version "2014.2."   there is error occour :

Could not load type 'Telerik.Windows.Controls.TemplateVisualStateAttribute' from assembly 'Telerik.Windows.Controls, Version=2014.2.729.45, Culture=neutral, PublicKeyToken=5803cfa389c90ce7'. Line 2497 Position 280.' 

Is any thing missing while upgrading telerik dll.

Thanks,
Petya
Telerik team
 answered on 05 Nov 2014
1 answer
95 views
We are implemting a diagram with geometry shapes. These shapes is meant to be inserted in a work "Shapes" way. Meaning this:

User select a circle from the ribbon, and the cursor changes to cross.
Now when the user press and hold left mouse button (MouseLeftButtonDown), the shape is inserted and a resize operation is started.

My problem is i have some trouble starting the resize operation.

I have tried in PreviewMouseLeftButtonDown to set handle, and change the ActiveTool to ResizeSENW, and call ResizeIntialise on the Resize service.

This with no luck. Can you guys point me in the right direction to achieve this.

Regards

Anders
Zarko
Telerik team
 answered on 05 Nov 2014
3 answers
249 views
Hi,

I can't figure out how to correctly use the EditorTemplateSelector with the RadPropertyGrid. I just want to apply custom DataTemplates for different types of properties. The applying parts works as expected but I don't understand how to get the DataContext to work. DataContext inside the DataTemplates is always pointing to the top level object that is bound to the RadPropertGrid as Item. It would really make more sense to me to have the specific property (or PropertyDefinition) as DataContext. So, how do I bind to the specific property from the Editor-DataTemplate?

Thanks for your help!

Marcel
Boris
Telerik team
 answered on 05 Nov 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?