Telerik Forums
UI for WPF Forum
3 answers
107 views

Hi,

Am trying to plot a chart with 50,000 records.

The rendering time required is around 8 to 10 seconds,please suggest how do I improve the performance.

 

Thanks in advance.

Martin Ivanov
Telerik team
 answered on 09 Oct 2015
1 answer
172 views

Hello,

I'm seeking a way to strip a paragraph's SpacingBefore and SpacingAfter properties when pasted into a RichTextBox from an outside source. So far all my attempts at intercepting these properties have proven futile. I've searched these forums for various ways of handling pasted data, yet none have proven effective for my particular situation. I've attempted to enumerate through the document's paragraphs and set each paragraph's SpacingBefore/After property to 0, I've attempted to change the paragraph's properties in the PastCommand handler while enumerating through paragraphs' Inlines to remove certain types (the removal works here, but not the set properties).

I'm hoping to gain advice on how this should be properly done. I can include some code snippets if that would be helpful.

 

Thank you,

Steve

 

P.S: It might also be helpful to mention the need for this came after upgrading from Telerik version 2014.1.0224.45 to version 2015.2.728.45, where the outside source styling did not carry into the RichTextBox.

Todor
Telerik team
 answered on 09 Oct 2015
1 answer
95 views

I have set 

FrozenColumnCount="8"

Is it then possible to only have the horizontal scroll-bar be visible under the other columns and not the frozen columsn?

Right now the scroll-bar extends from the start of the grid. But would like it to be visible under column 9 and forth

 

Petya
Telerik team
 answered on 09 Oct 2015
1 answer
108 views

I can't find any Search Box in the WPF UI libraries.

It could possibly as simple as exposing the search/filter box from the PropertyGrid

Rosi
Telerik team
 answered on 09 Oct 2015
6 answers
148 views

I am still in the process of evaluating the Telerik WPF package. Everything was OK with the Chart component until I found this problem.

 When loaded with plenty of data, the chart crashes with the following exception :

Decimal too big or too small

   at System.Decimal..ctor(Double value)
   at System.Decimal.op_Explicit(Double value)
   at Telerik.Charting.LinearAxisModel.<GenerateTicks>d__0.MoveNext()
   at Telerik.Charting.AxisModel.<Delay>d__1e`1.MoveNext()
   at Telerik.Charting.AxisModel.TryBuildNonOverlappingTicksAndLabels(Boolean buildLabels, ValueRange`1 zoomRange, Boolean allowOverlappingLabels)
   at Telerik.Charting.NumericalAxisModel.ChooseActualRange()
   at Telerik.Charting.NumericalAxisModel.BeginMeasureCore(RadSize availableSize)
   at Telerik.Charting.AxisModel.MeasureCore(RadSize availableSize)
   at Telerik.Charting.AxisModel.Measure(RadSize availableSize)
   at Telerik.Charting.NumericalAxisModel.Measure(RadSize availableSize)
   at Telerik.Charting.CartesianChartAreaModel.AxisStack.Measure(RadSize availableSize)
   at Telerik.Charting.CartesianChartAreaModel.PrepareAxesStacks(RadSize availableSize)
   at Telerik.Charting.CartesianChartAreaModel.ArrangeAxes(RadRect availableRect)
   at Telerik.Charting.ChartAreaModelWithAxes.UpdateAndArrangeAxes(SeriesByAxesTuple seriesByAxes, RadRect availableRect, RadRect& seriesRect)
   at Telerik.Charting.ChartAreaModelWithAxes.ArrangeOverride(RadRect rect)
   at Telerik.Charting.ChartNode.Arrange(RadRect rect, Boolean shouldRoundLayout)
   at Telerik.Charting.ChartAreaModel.Arrange()
   at Telerik.Windows.Controls.ChartView.RadChartBase.UpdateChartArea()
   at Telerik.Windows.Controls.ChartView.RadChartBase.CallUpdateUI()
   at Telerik.Windows.Controls.ChartView.RadChartBase.OnInvalidated()
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Threading.DispatcherOperation.Invoke()
   at System.Windows.Threading.Dispatcher.ProcessQueue()
   at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   at System.Windows.Application.RunDispatcher(Object ignore)
   at System.Windows.Application.RunInternal(Window window)
   at System.Windows.Application.Run(Window window)
   at System.Windows.Application.Run()

Known problem? Any workaround?

Petar Marchev
Telerik team
 answered on 09 Oct 2015
5 answers
145 views

Hi,

 I have an issue with Integer and Boolean column filters in Gridview, it's always displaying blanks in the filter value suggestions.

I attached a screenshot to show the issue.

Thank you.

Stefan
Telerik team
 answered on 09 Oct 2015
6 answers
272 views

Hi there,

I have 2 RadGridViews in a sample project defined as per the attached screenshot (GridViewFocusIssue.png).

The crux of the issue is as follows:

-If I edit any of the cells in the 1st grid, and then click on either the TextBox or the Button, then the Cell Edit is committed as expected.

-If I edit any of the cells in the 1st grid, and then click into a cell in the 2nd grid, the cell that was being edited in the 1st grid doesn't leave Edit mode. (please see ProblemScreenshot.png)

My desired behaviour is that as soon as a user clicks outside of a cell that is in edit mode, then that cell should have its edit committed.

Please can you advise how to do this?

 

 

Maya
Telerik team
 answered on 09 Oct 2015
2 answers
188 views

Hello 

 

I am trying to generate a simple chart with 3 datapoint. Datapoints are defined as shown below

public IDgraphViewModel()         {         

    Data = new ObservableCollection<ChartProfileSerisi>();        

     ChartProfileSerisi chartProfil1 = new ChartProfileSerisi();         

    chartProfil1.Noktalar.Add(new ChartVeriNoktasi(1.0,1.0));      

     chartProfil1.Noktalar.Add(new ChartVeriNoktasi(10.0, 10));    

         chartProfil1.Noktalar.Add(new ChartVeriNoktasi(140, 60));   

                        Data.Add(chartProfil1);                    } 

I define the series with code behind

 Chart.HorizontalAxis = new LinearAxis();            Chart.VerticalAxis = new LinearAxis();                        ScatterPointSeries series1 = new ScatterPointSeries();

           series1.ItemsSource = Data[0].Noktalar;            series1.XValueBinding = new PropertyNameDataPointBinding() {PropertyName = "Zaman"};            series1.XValueBinding = new PropertyNameDataPointBinding() { PropertyName = "Stres" };            series1.Visibility = Visibility.Visible;                        

           Chart.Series.Add(series1);

 In generated graph, axis appears correctly, x axis covers all data range up to 140 but points are not visible. In debugger, I checked

series1.DataPoints  property, it is empty. What could be missing? The remaining code is below

 

public class ChartProfileSerisi     {      

  public ObservableCollection<ChartVeriNoktasi> Noktalar { get; set; }

   public ChartProfileSerisi()        {           

 Noktalar = new ObservableCollection<ChartVeriNoktasi>();           

         }    }    

 

 

public class ChartVeriNoktasi    {            

    public ChartVeriNoktasi(double zaman, double stres)        {      

      this.Zaman = zaman;            this.Stres = stres;        }

       public double Zaman { get; set; }   

     public double Stres { get; set; }    

}​

Martin Ivanov
Telerik team
 answered on 08 Oct 2015
1 answer
87 views

I see in the docs that it is possible to detect a point being selected in a chart view.

Is it possible to drag that selected point so that the underlying data get updated?

If it is possible to do so, we have a curve editor which is something I will need in my project.

Any other way to achieve this 'feature' ?

 

Thanks

Laurent

 

Martin Ivanov
Telerik team
 answered on 08 Oct 2015
4 answers
69 views

Hi,

I have an issue and I can't seem to find the answer on my own.

To reproduce you need a blank document, or a document with a few lines, then you have to zoom on the document and finally you have to scroll to the bottom.

Once you did that, click on the bottom of the document (left or right), the document is scrolled up the the last line break, which in my case is on the top of the document.

Do you ​have the same behaviour? Please say yes...

Thanks.

Bobby
Top achievements
Rank 1
 answered on 08 Oct 2015
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?