Telerik Forums
UI for WPF Forum
1 answer
333 views

     Is there a way to move the scroll bar on a live updating line chart? 

I want to set it to a position and size then every 50 or so data points have it shift

Martin Ivanov
Telerik team
 answered on 18 Nov 2019
5 answers
320 views

Hello,

I have a View which I want to split into 4 sub-parts, flexibly. To do this I tried to take advantage of the RadLayoutControl. In one of the 4 sub-, I place a RadGridView which binds to a collection giving it exactly 1000 rows. The performance with this configuration is terrible, and not usable.

If I comment out the usage of the RadLayoutControl and it's sub-elements, and just show the same GridView, the performance is fine.

I am aware of the performance restrictions on the RadGridView, please see:

https://docs.telerik.com/devtools/wpf/controls/radgridview/troubleshooting/performance
https://docs.telerik.com/devtools/wpf/controls/radgridview/performance/tips-tricks
which are somewhat redundant as they show the same information.

Most likely the "problem" is:
RadGridView is placed in a control that measures its children with infinity - such controls are:
ScrollViewer
StackPanel (when vertical it measures with infinite height and when horizontal - with infinite width)
Grid with RowDefinition Height="Auto" or ColumnDefinition Width="Auto".

I do not place the GridView in any Grid where Height="Auto" or ColumnDefinition Width="Auto".
However, looking at the visual trees in snoop, it is clear that "LayoutControlGroup", "LayoutControlExpanderGroup" etc. all add their own Grids and ScrollViewers.

How can I then put a GridView inside of a nested set of Layout Controls and get it to work normally?

For your information, my nested Layout Controls are very similar to those in the Demo Code Samples for "Layout Control", "First Look". Nothing special.

Thanks,
Mark

Mark
Top achievements
Rank 1
 answered on 15 Nov 2019
1 answer
123 views

Hello,

I have RadCartesianChart with DateTimeContinuousAxis and LinearAxis (DateTime vs double representation). And I want to to use KeepExtremesFunction, but exception occurs:

System.InvalidOperationException: 'No generic method 'KeepExtremes' on type 'Telerik.Windows.Controls.ChartView.ChartSamplingFunctions' is compatible with the supplied type arguments and arguments. No type arguments should be provided if the method is non-generic. '

Bay the way ChartMaxFunction, ChartMinFunction or MemberFirstFunction works fine.

 

public class LineSeriesEx : LineSeries
{
    protected override ChartAggregateFunction GetCategoryAggregateFunction()
    {
      return new KeepExtremesFunction();
    }
}

 

Thomas
Top achievements
Rank 1
 answered on 15 Nov 2019
1 answer
191 views

I'm wondering if you can suggest an approach to achieve an effect I want (which I describe below).  I don't think so but I thought I would check.

I'm using a NumericUpDown to show length values of type double.    I want to be able to make the Up/Down buttons change the displayed value to an even multiples of a a whole number, regardless of the starting value or the direction (up vs down)  of the button they hit.  Is there a way to do this?

For example, suppose the initial value is 1.23.   

If the user hits the "Up" button, I want the value to change from 1.23 to 2.00. But the next time he/she hits it I want it to change from 2.00 to 3.00
But if the user hits the "Down" button, I want the value to change from 1.23 to 1.00.  The next time, I want it to change from 1.00 to 0.00

If there were separate "SmallChange" properties for the up and down directions, this would be easy.   I could bind them and do the math whenever the value changes.  But I only have the one "SmallChange" property.

If there were some way for me to insert a "CoerceValue" callback into the "Value" property, I could do that.  But I don't believe that is possible.  If it is, please tell me how

Is there any way to achieve this?

Dimitar Dinev
Telerik team
 answered on 15 Nov 2019
6 answers
669 views
Hi,

After installing the application, I am using OSM maps. That download images from OSM server and reused from cache location. Can i know where this downloaded images stored in system location.?

 
Thanks,
bharathi
Top achievements
Rank 1
 answered on 15 Nov 2019
3 answers
304 views

Are the WPF-controls completely comaptible with .net core 3? I developed a project. The xaml designer was working at first but sudddenly crashed(1st image) and then Visual Stutio 2019 crashed(2 image). When I reopen the project, xaml designer still crashed, then VS 2019 crashed.

With Framwork 4.7 is everything OK.

Nikola
Telerik team
 answered on 15 Nov 2019
4 answers
584 views

Hi there,

 

I hope you can help me with this, attached a screenshot that shows what I am looking for.

 

Thanks,

Bahram Afsharipoor

Dilyan Traykov
Telerik team
 answered on 15 Nov 2019
1 answer
103 views
I want to set the line style in my chart but I don't know what type to target in the style.  The documentation does not not say.  Line?  Path?  Something else?
Joe
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 14 Nov 2019
1 answer
122 views

Hi All
I would like to prevent the transition control from showing any transition/animation under certain conditions. For example, the content is bound to an enum field, for certain enum values I dont want it to transition.
I have tried using IValueConverter     

public class DispatchContentTransitionConverter : IValueConverter
    {
        public TransitionProvider TransitionForward { get; set; }
        public TransitionProvider TransitionBackward { get; set; }
        public TransitionProvider NoTransition { get; set; }
 
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if (value == null) return NoTransition;
            KeyValuePair<int, string> OSDispatchStatus = (KeyValuePair<int, string>)value;
            if (OSDispatchStatus.Key == SettingsConsts.OS_DispatchStatus_ReadytoBookCollection)
            {
                return TransitionForward;
            }
            else
            {
                return NoTransition;
            }
        }
 
        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }

 

But for this option I cannot set a "No Transition" transition

Second option tried: Setting Duration of the transition on TransitionStatusChanged, but this option only applies to the "Next" transition called not the current

private void MainTransControl_TransitionStatusChanged(object sender, Telerik.Windows.Controls.TransitionControl.TransitionStatusChangedEventArgs e)
       {
           OrderDispatchModel VM = DataContext as OrderDispatchModel;
           if (VM != null )
           {
               if (VM.OSDispatchStatus.Key == SettingsConsts.OS_DispatchStatus_ReadytoBookCollection)
               {
                   this.MainTransControl.Duration = new TimeSpan(0, 0, 1);
               }
               else
               {
                   this.MainTransControl.Duration = new TimeSpan(0, 0, 0);
               }
           }
           else
           {
               this.MainTransControl.Duration = new TimeSpan(0, 0, 0);
           }
       }

 

Anyone have any ideas of how to implement this?

 

Vladimir Stoyanov
Telerik team
 answered on 14 Nov 2019
1 answer
204 views

Hi everybody.

I'm facing an issue with telerik's RadRibbonView for WPF controls. I set the focus through code by calling ribbonView.Focus(), but afterwards I can not move focus to buttons inside ribbon view. I tried setting IsTabStop on ribbon buttons manually, but it didn't work either. Sample Xaml code is as follows:

<telerik:RadRibbonWindow
    x:Class="WpfRadRibbonFocusIssue.MainWindow"
    xmlns:local="clr-namespace:WpfRadRibbonFocusIssue"
    Title="MainWindow"
    Width="800"
    Height="450"
    mc:Ignorable="d">
    <telerik:RadRibbonWindow.Resources>
        <Style x:Key="FocusedStyle">
            <Setter Property="Control.Template">
                <Setter.Value>
                    <ControlTemplate>
                        <Rectangle Stroke="Blue" StrokeThickness="1" />
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </telerik:RadRibbonWindow.Resources>
 
    <DockPanel>
        <telerik:RadRibbonView
            x:Name="ribbonView"
            DockPanel.Dock="Top"
            FocusVisualStyle="{StaticResource FocusedStyle}">
            <telerik:RadRibbonTab Header="Tab 01">
                <telerik:RadRibbonGroup Header="Group 01">
                    <telerik:RadRibbonButton IsTabStop="True" Text="Hello" />
                    <telerik:RadRibbonButton IsTabStop="True" Text="Hello 2" />
                    <telerik:RadRibbonButton IsTabStop="True" Text="Hello 3" />
                </telerik:RadRibbonGroup>
            </telerik:RadRibbonTab>
            <telerik:RadRibbonTab Header="Tab 02">
                <telerik:RadRibbonGroup Header="Group 02">
                    <telerik:RadRibbonButton Text="Command 01" />
                    <telerik:RadRibbonButton Text="Command 02" />
                    <telerik:RadRibbonButton Text="Command 03" />
                </telerik:RadRibbonGroup>
            </telerik:RadRibbonTab>
        </telerik:RadRibbonView>
    </DockPanel>
</telerik:RadRibbonWindow>
Dinko | Tech Support Engineer
Telerik team
 answered on 14 Nov 2019
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
PersistenceFramework
DataPager
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
ProgressBar
Sparkline
LayoutControl
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
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?