Telerik Forums
UI for WPF Forum
1 answer
152 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
219 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
122 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
289 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
163 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
323 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
253 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
116 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
285 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
3 answers
238 views
Hi,

I have a special need where I have 2 gridViews side by side. They have their own data source, but always the same number of rows.
I have to adjust the height for each row, and take the vale of the ighest row.

This is needed to ensure that vertical scrolling is always synchronized.

I tried to work with the RowLoaded event, but a this point, the Height is always "NaN" and ActualHeight is always 0.0.

Do you have an idea how I can perform this? Maybe in another event ?

Thanks,
Ben
Boris
Telerik team
 answered on 05 Nov 2014
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
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?