Telerik Forums
UI for WPF Forum
2 answers
113 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
740 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
88 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
157 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
215 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
586 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
1 answer
232 views

Hi,

I want to achieve a radgrid view with nested collection. The twist is binding should create a new column and not like row details.

E.g. My data looks like

List<class1> lstObj1 = new List<class1>();

public class1

{

public string name;

public string id;

public List<class2> objClass2List = new List<class2>();

}

public class2

{

public string sub1;

public string sub2;

}

 

View should be like as attached:

Stefan
Telerik team
 answered on 08 May 2017
18 answers
546 views

Hi, I've got a situation where I need a chart to create a new line series based on user selection (i.e., user selects 3 Employees from a list of 10 to compare, and then the chart will show 3 Line series, each corresponding to the respective employee's annual revenue to date). 

Most of the examples rely on code-behind to create a new SeriesMapping and then add it to the chart's list of mappings. I'm curious if there would be any declarative way to account for a varying number of Series on a chart, similar to a DataTemplate used for other controls. To bind the number of Series to a collection where each Series binds to a sub-collection.

Here's a grid I have working for just one series:

<telerik:RadChart Name="LapTimes" DataContext="{Binding SelectedEmployees}" ItemsSource="{Binding Employee.SalesList}">
      <telerik:RadChart.SeriesMappings>
          <telerik:SeriesMapping LegendLabel="Employee">
              <telerik:SeriesMapping.SeriesDefinition>
                  <telerik:LineSeriesDefinition ShowItemLabels="False">                                            
                  </telerik:LineSeriesDefinition>                                        
              </telerik:SeriesMapping.SeriesDefinition>
              <telerik:SeriesMapping.ItemMappings>
                  <telerik:ItemMapping FieldName="SalesNum" DataPointMember="XValue"/>
                  <telerik:ItemMapping FieldName="SalesValue" DataPointMember="YValue"/>
              </telerik:SeriesMapping.ItemMappings>
          </telerik:SeriesMapping>
      </telerik:RadChart.SeriesMappings>
  </telerik:RadChart>

SelectedEmployees is an ObservableCollection<Employee> and each Employee type has an ObservableCollection<Sale>.

That actually shows the first Employee in the collection just fine. But, how would I template my RadChart in a way that for each Employee in SelectedEmployees there's a Line Series using that Employee's Sales collection - without using code-behind?
Martin Ivanov
Telerik team
 answered on 08 May 2017
2 answers
124 views

I have some functionality that I would like to have included in every instance of RadGridView in my application. This is on two events, DistinctValuesLoading and FilterOperatorsLoading.

 

I tried adding them via EventSetters in a global Style ResourceDictionary, but I'm getting error saying that they are not Routed Events.

 

Is  there another way to do this, or do I need to just add the functionality manually to every instance?

Mark
Top achievements
Rank 1
 answered on 05 May 2017
1 answer
236 views

I have a setup that each row detail contains a child gridview, and when parent row is expanded, the child gridview should show all its rows, ie. no scrollbar because we don't want "double" scrollbars.

The issue is when the child gridview has many rows (in our case, 100), it takes a while (~6s) from expand the parent row to display all children rows.

Do you have any tips to speed up this scenario?

Stefan Nenchev
Telerik team
 answered on 05 May 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?