Telerik Forums
UI for WPF Forum
8 answers
690 views
I have observed that any application with a RadGridView consumes CPU time even when the application is idle.  Using Spy++, you can verify this and see thousands of WM_TIMER messages being posted when a RadGridView is added to an application.  I have a simple repro app.  Full XAML below.  Just comment out the RadGridView, and the behavior goes away.  You can see using Process Explorer that even when the application is idle there is CPU usage, and using Spy++ you can see the timer events being fired rapidly.  This causes a large number of context switches and slows down performance noticeably.

Framework: .Net 4.5
Telerik Version: 2014.1.331.45

<Window x:Class="GridViewTimer.MainWindow"
        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"
        Title="MainWindow" Height="350" Width="525">
    <telerik:RadGridView />
</Window>
Stefan
Telerik team
 answered on 10 May 2017
3 answers
133 views

In GridViewRowTemplate - ValueStates - RowInvalid VisualState, there is a storyboard to change ErrorIndicator.Visibility to Visible, but how can I change it in code behide?

I've tried

VisualStateManager.GoToElementState(row, "Invalid", true);

,but it seems no working.

Martin
Telerik team
 answered on 10 May 2017
1 answer
142 views
Hi,
I Have a ComboBox and I set IsEditable to True.
the ComboBox have Following Items:
Alex
Bernard

in loaded Event I set ComboBocx.Text to "A"
it makes SelectedItem will be Alex
but I don't want change SelectedItem.
there is a solution for that?
Stefan Nenchev
Telerik team
 answered on 10 May 2017
2 answers
182 views

1.

I have a radgridview, which contains RadRibbonGroups, which contains comboxboxes and textboxes.

However, I would also like to be able to resize the textboxes and comboboxes in the medium state. I could program it in XAML if I knew how to bind to  the RadRibbonGroup to get the current variant used. Or how to use wrap my controls in RadCollapsiblePanel inside the ribbongroup and bind to a property which contains the current state (small, medium, large).

? Is there a way to bind to the the current size variant of the group? I dont know which property to use.

 

2.

On another RadGridView, the RadRibbonGroups does not contain RadCollapsiblePabel and when it collapses, it collapses into a single collapse into a single button with an (ugly) standard picture.

? Is there any way to change this picture?

 

Thanks

Inger Marie
Top achievements
Rank 1
 answered on 09 May 2017
2 answers
140 views

Hi,

I am working on an application where I have to display the Current Time Indicator in UTC but there is no option or property to set it on the control.

Is there a way to do this? Do you plan to have this in the next release (The R2 2017 release of UI for WPF)?

I found a similar issue here: http://www.telerik.com/forums/currenttimeindicator-in-utc

Kind regards,

Soares

Stefan Nenchev
Telerik team
 answered on 09 May 2017
12 answers
950 views
Hi,

The scenario: a zoommable chart with a DateTime axys that contains a lot of points, approxymately one each 5 or 6 minutes for years.

I set the X Axys MaximumTicks property to 10 and all work good.

But:

1) If I'm looking a range of years the time is not interesting for me
2)  If I'm looking a range of years I prefer that any ticks go exaclty to one day (1/3/2013 00:00:00 instead of 1/3/2013 12:23:45)
3)  If I'm looking a range of hours the time is really important

How to menage manually the parameters 
MajorStepUnit and MajorStep?
The ActualRangeChanged event don't exists!

Thank's
marc.








Valentin
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 09 May 2017
2 answers
128 views

Hello everybody,

I have a RaDiagram which will be filled via MVVM.

Additionally my shapes and connections have custom properties - for the sake of convenience let's say every shape has a status property.

I customized the SettingsPane, so when entering a shape's SettingsPane I have a checkbox which changes the status property of the shape.
Checked -> shape.status = 1
Unchecked -> shape.status = 0

This is working fine.

Additionally I have a flag in my ViewModel which will be updated after the status change, so that my CanExecuteUndoCommand will set

1.e.CanExecute = True
2.e.Handled = True

 

Unfortunately the UndoRedoStack of the diagram tells me that there is nothing in the stack.
I guess that the UndoCommand (and of course the RedoCommand) only handles the default "Content" property of a shape.

Can you give me an example how I can extend your functionality, to the RadDiagram, that changing custom properties of a shape also fill the UndoRedoStack.

Thanks in advance,
Timon
Timon
Top achievements
Rank 1
 answered on 09 May 2017
1 answer
186 views

Hello Team,

 

I am getting 2 times row loaded getting fired in my application. How to handle this problem.

 

More detail : First time e.Row is GridViewHeaderRow and Second time e.Row is GridViewFooterRow.. But we are not using Footer row in our application.

 

How to handle this situation any help .

 

Thanks,

Sundar M.

 

Stefan
Telerik team
 answered on 09 May 2017
7 answers
265 views
I have implemented a chart which displays a dynamic set of series (displayed as points), using BitmapRenderOptions with a SeriesProvider in an MVVM environment.  However, I have been unable to figure out how to control the color of each series.  The color of the series lives in each DataObject instance in the ChartSeriesProvider Source collection.

I have been able to set the color of the series based on this value if I chart the data as a LineSeries (by setting the Stroke property in the LineSeries style within the CategoricalSeriesDescriptor.Style declaration), but I haven't found a solution for PointSeries' yet.  In other charts in the project (that don't require a SeriesProvider), I have been able to set the color for the point series via PointSeries.DefaultVisualStyle.

I am able to get each series to be a different color using a palette, but since I need the series to match a specific color, even a custom palette wouldn't work (as I have no way to link the correct color to the series).

I know that I can't use a PointTemplate, as I want/need the BitmapRenderOptions, so how do I bind the color?  I know there must be a simple solution that I'm missing!

Thanks
li
Top achievements
Rank 1
 answered on 09 May 2017
3 answers
645 views
Hi telerik,

We are plotting ScatterlineSeries on a RadCartesianChart. Works well.

However, as we plot several series in same chart, our users request a tooltip with the name of series to distinguish them.

I've tried to set the TooltipTemplate of the chart in which case I can get the tooltip for *points* and thought I could use that as a workaround and place Curve Name on each point. However, when I try to bind to an 'enriched' Datapoint I get an error as the points in the serie are ScatterDataPoints (though I've tried to add my 'customized' points, see below).

So I guess I'm missing the point here - or quite a few ;)

First of all, what is the recommended way of providing a serie-specific text on each curve as a tooltip?

And if my approach is not to far off, can you see what I do wrong?

Thanks,

Anders, Denmark

itemsSource.Add(new Rap1DDataPoint(valuesX[i], valuesY[i],curve.CurveName));

public class Rap1DDataPoint : DataPoint
{
    public string CurveName { get; set; }
 
    public Rap1DDataPoint(double x, double y, string curveName):base(x,y)
    {
        CurveName = curveName;
    }
}

var lineSeries = new ScatterLineSeries
                     {
                         ShowLabels = true,
                         ToolTip = legendHeader,
                         Stroke = serieColor,
                         StrokeThickness = 2,
                         //LegendLabel = legendHeader,
                         //SeriesDefinition = splineSeriesDefinition,
                         ItemsSource = itemsSource,
                         XValueBinding = new PropertyNameDataPointBinding("XValue"),
                         YValueBinding = new PropertyNameDataPointBinding("YValue"),
                         PointTemplate = pointTemplate                                   
                     };

Arvind
Top achievements
Rank 1
 answered on 08 May 2017
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
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?