Telerik Forums
UI for WPF Forum
9 answers
479 views

I have a rad cartesian chart that displays temperature data that are fed at 1s interval.

 

There are several series. 

After about 5-10min, the UI becomes slow and unresponsive. I've tried several render option, Xaml, Bitmap & Direct2DRenderOptions with Batch mode but it still being an issue.

It doesn't seem to happen using scatter series, but then I cannot format the time label on the C

 

<telerik:RadCartesianChart  VirtualizingPanel.IsVirtualizing="True" Background="White"
            Zoom="{Binding Zoom,UpdateSourceTrigger=PropertyChanged,Mode=TwoWay}"
                                   PanOffset="{Binding PanOffSet,UpdateSourceTrigger=PropertyChanged,Mode=TwoWay}"
            Grid.Column="2"  Grid.Row="1"  x:Name="TemperaturelineChart" HorizontalAlignment="Stretch" 
                                    VerticalAlignment="Stretch" EmptyContent="Waiting Data...&#xD;&#xA;">

        <telerik:RadCartesianChart.Resources>
                <Style TargetType="telerik:PanZoomBar">
                    <Setter Property="Visibility" Value="{Binding IsScrollbarVisible}"/>
                </Style>

                </telerik:RadCartesianChart.Resources>

            <telerik:RadCartesianChart.Series>
                <telerik:LineSeries>
                    <telerik:LineSeries.RenderOptions>
                        <telerik:Direct2DRenderOptions DefaultVisualsRenderMode="Batch"/>
                    </telerik:LineSeries.RenderOptions>
                </telerik:LineSeries>
            </telerik:RadCartesianChart.Series>

            <telerik:RadCartesianChart.HorizontalAxis >

                <telerik:DateTimeCategoricalAxis LabelRotationAngle="90" SmartLabelsMode="SmartStep"
                                                 MajorTickInterval="10" LabelFormat="HH:mm">

                   
                    </telerik:DateTimeCategoricalAxis>

            </telerik:RadCartesianChart.HorizontalAxis>
            
            
            <telerik:RadCartesianChart.VerticalAxis >
                <telerik:LinearAxis  SmartLabelsMode="SmartStep" Minimum="0" Maximum="{Binding ElementName=Slider, Path=Value, Mode=OneWay}">
                </telerik:LinearAxis>
              
            </telerik:RadCartesianChart.VerticalAxis>
            
            
            <telerik:RadCartesianChart.Behaviors>
                <telerik:ChartPanAndZoomBehavior ZoomMode="Both" />
            </telerik:RadCartesianChart.Behaviors>
            <telerik:RadCartesianChart.InputBindings>
                <MouseBinding Command="{Binding ZoomResetCommand}" MouseAction="RightClick"/>
            </telerik:RadCartesianChart.InputBindings>
        </telerik:RadCartesianChart>
    </Grid>
</commonUtilities:BasePaneView>

 

 

Points added as:

 

            CategoricalDataPoint point = new CategoricalDataPoint
            {
                Label = time,
                Value = Temperature,
                Category = time
            };


            Serie.DataPoints.Add(point);

 

How can I improve performances?

Martin Ivanov
Telerik team
 answered on 16 Feb 2021
1 answer
175 views

Hello,

i was in correspondence with Martin Ivanov and we worked out some information i want to share.

Situation: Multi-Monitor-Environment with Taskbars on every monitor. Docking with floating panes and taskbar icon like: https://github.com/telerik/xaml-sdk/tree/master/Docking/FloatingPaneTaskbarIcons 

Problem: when moving a ToolWindow to the next monitor the taskbar icon stays on the monitor it was created.

Reason: some native WPF window behavior

Workaround: Create a custom ToolWindow and "refresh" icon when window is moved to an other monitor:

public class CustomToolWindow : ToolWindow
{
    private Screen _startMonitor;       
     
    public CustomToolWindow()
    {
        LayoutChangeEnded += Window_LayoutChangeEnded;
        LayoutChangeStarted += Window_LayoutChangeStarted;
    }
     
    private Screen FindMonitor()
    {
        var yCenter = Top + (Height / 2);
        var xCenter = Left + (Width / 2);
 
        return Screen.AllScreens.FirstOrDefault(x =>
            x.Bounds.Top < yCenter && (x.Bounds.Top + x.Bounds.Height > yCenter)
            && x.Bounds.Left < xCenter && (x.Bounds.Left + x.Bounds.Width > xCenter)
        );
    }
     
    private void Window_LayoutChangeStarted(object sender, EventArgs e)
    {
        _startMonitor = FindMonitor();
    }
 
    private void Window_LayoutChangeEnded(object sender, EventArgs e)
    {
        if (!Equals(_startMonitor, FindMonitor()))
        {
            RadWindowInteropHelper.SetShowInTaskbar(sender as ToolWindow, false);
            RadWindowInteropHelper.SetShowInTaskbar(sender as ToolWindow, true);
        }
    }
}

I hope this helps. If someone optimize the code and find a solution to prevent the flickering on "refresh" please share it!

regards marco

Martin Ivanov
Telerik team
 answered on 16 Feb 2021
4 answers
240 views

Hi, I'm developing an RadWizard page with RadBusyIndicator control.
I've got the busy indicator that inside have the RadWizard so I have one busy indicator for all wizard pages.
At last page of wizard I've got an input and I would to set focus to it when the busy indicator finish. But it don't happen.
I've try the solution with FocusHelper.EnsureFocus but nothing happens.

I reproduce the case and attach the project here: https://we.tl/t-nPCbEFRtjw
How can I do this?
I notice that if the BusyIndicator is in WizardPage.Content than all work as aspected.
Thanks

 

Dilyan Traykov
Telerik team
 answered on 16 Feb 2021
1 answer
147 views

Hello,

Is there a way to change the default behavior of hyperlinks within a RichTextBox to allow file:/// links? After inserting a link through the UI, the control seems to automatically add the 'http://' to an address that begins with the file:/// scheme.

Dimitar
Telerik team
 answered on 16 Feb 2021
2 answers
201 views
So i have my background set to a specific color, but I alway want to be able to overlay a png with transparent setction.

If I just need to be able to use the chart as a background I'd use the imagebrush for the background and be done with it.

Is there a way I can set the background to a color AND have a background image?
LoginiMoon
Top achievements
Rank 1
 answered on 15 Feb 2021
2 answers
2.0K+ views

Hey everyone,

I'm looking to have a RadGridView's horizontal scroll bar react to a trackpad or mouse wheel input. Vertical scrolling works just fine, but is there a way to set it for horizontal as well? I know some apps have that functionality only when the user has the mouse hovered over the scroll bar.

Is this possible? Did I miss a setting somewhere?

Thanks!

Lee
Top achievements
Rank 1
Veteran
 answered on 11 Feb 2021
1 answer
126 views

Hi, I need to create the both types of windows Transparent and non Transparent. The RadPane pane.DataContext  contains appropriate information about the type of window to be created for this RadPane.

 

 

I see in https://www.telerik.com/forums/hosting-a-win32-window-in-a-wpf-floating-tear-off-tab that it was impossible in 2012, but may be do you have any updates for this issue?

How I can implement this?
Thanks

Kalin
Telerik team
 answered on 11 Feb 2021
2 answers
108 views

I have a problem in the runtime application with the theme , in fact, I didn't get the same format that was displayed in the xaml designer .

the problem is related to the undo button as you can see in the attachments .

How can I fix this problem of design?

Dimitar
Telerik team
 answered on 10 Feb 2021
2 answers
104 views

Hello,

I'm using RadRichTextBoxRibbonUI and it works fine , but I have a little suggestion about tab items. Is it possible to add a text ( "File" ) to the tab item file name ( as an example the theme existed in Document Text in OneDrive )? . See the attachments 

 

Abdechafi
Top achievements
Rank 1
Veteran
 answered on 10 Feb 2021
3 answers
514 views

Hello.

 

I saw the post in 2013. At that time, it was impossible to implement.

Is it possible now? Putting something like "ItemsSource={bindg WorkBook}" in telerik:RadSpreadsheet and binding it with MVVM?

Even when called like this, a workbook and a worksheet are created and bound in the viewmodel, and modifications should be possible afterwards.

About 8years have passed. But there are not many posts.

 

If possible, ask for examples. Thanks.

 

<Like this>
 
View(*.xaml)
<telerik:RadSpreadsheet ItemsSource={binding WorkBookItem} />
...
...
...
 
ViewModel(*.cs)
public WorkBook WorkBookItem {get;set;}~
....
var workbook = new Workbook();
Worksheet workSheet;
workSheet = workbook .Worksheets.Add();
workSheet.Name = "Name";
 
WorkBookItem= workbook ;

 

Dimitar
Telerik team
 answered on 10 Feb 2021
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?