Telerik Forums
UI for WPF Forum
1 answer
94 views
I would like to create a line series graph that does not interpolate between points: I've been told by the quants and traders that this is called a Manhattan bar plot.

I've attached a mock up of such a graph.I can get the current RadChartView to create this effect by inserting a duplicate data points

i.e.:
DataPoint(Time: 07:00, Price: $101.10) <-- previous price
DataPoint(Time: 08:00, Price: $101.10) <-- Duplicate inserted to prevent interpolation
DataPoint(Time: 08:00, Price: $111.10) <-- New price

The problem with inserting the dummy points is that is doubles the size of the data structure bound to the graph.

I took a look at the samples but didn't see anything about customizing the behavior of the LineSeries. Note we use the light renderer because we have a very large data set.
It seems like 
BitmapLineRenderer.RenderCore()in Telerik.Windows.Controls.ChartView.

Is where the current interpolation is carried out?
Petar Marchev
Telerik team
 answered on 19 Dec 2012
3 answers
491 views
Hi guys!

I have gridview with custom defined style for it's children. But when I set up cellvalidating | rowvalidating event, it's not fire up! Why??

GridView xaml:

<t:RadGridView Grid.Row="2" Style="{StaticResource OverrideDefaultGridViewStyle}" AddingNewDataItem="OnSpecGridViewAddingNewDataItem"
                       ItemsSource="{Binding Specifications, Mode=TwoWay}" x:Name="SpecGridView">
 
            <t:RadGridView.Resources>
                <DataTemplate x:Key="DraggedItemTemplate">
                    <StackPanel>
                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="{x:Static p:Resources.AddStandardWindow_TextBlock_Dragging}" />
                            <TextBlock Text="{Binding CurrentDraggedItem.SpecificationName}" FontWeight="Bold" />
                        </StackPanel>
                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="{Binding CurrentDropPosition}" FontWeight="Bold" MinWidth="45" Foreground="Gray"/>
                            <TextBlock Text=", (" Foreground="Gray" />
                            <TextBlock Text="{Binding CurrentDraggedOverItem.SpecificationName}" Foreground="Gray" />
                            <TextBlock Text=")" Foreground="Gray" />
                        </StackPanel>
                    </StackPanel>
                </DataTemplate>
            </t:RadGridView.Resources>
 
            <t:RadGridView.Columns>
                <t:GridViewColumn>
                    <t:GridViewColumn.CellTemplate>
                        <DataTemplate>
                            <t:RadButton Content="X" Click="OnDeleteSpecificationButtonClicked" Style="{StaticResource ButtonCustomStyleRed}" />
                        </DataTemplate>
                    </t:GridViewColumn.CellTemplate>
                </t:GridViewColumn>
                     
                <t:GridViewColumn Header="{x:Static p:Resources.AddStandardWindow_Specifications}">
                    <t:GridViewColumn.CellTemplate>
                        <DataTemplate>
                            <TextBox Style="{StaticResource OverrideDefaultTextBoxStyle}" Text="{Binding SpecificationName}"/>
                        </DataTemplate>
                    </t:GridViewColumn.CellTemplate>
                </t:GridViewColumn>
 
                <t:GridViewColumn Header="{x:Static p:Resources.AddStandardWindow_Parameter}" Width="20*">
                    <t:GridViewColumn.CellTemplate>
                        <DataTemplate>
                            <t:RadComboBox Style="{StaticResource ComboBoxStyle}" ItemsSource="{Binding RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type t:RadWindow}}, 
                                            Path=DataContext.Parameters}" SelectedItem="{Binding Parameter}" DisplayMemberPath="ParameterName" />
                        </DataTemplate>
                    </t:GridViewColumn.CellTemplate>
                </t:GridViewColumn>
 
                <t:GridViewColumn Header="{x:Static p:Resources.AddStandardWindow_Nominal}" Width="20*">
                    <t:GridViewColumn.CellTemplate>
                        <DataTemplate>
                            <TextBox Style="{StaticResource OverrideDefaultTextBoxStyle}" KeyDown="OnKeyDown" Text="{Binding Nominal, NotifyOnSourceUpdated=True, UpdateSourceTrigger=PropertyChanged}" SourceUpdated="OnNominalOrAccuracySourceUpdated">
                            </TextBox>
                        </DataTemplate>
                    </t:GridViewColumn.CellTemplate>
                </t:GridViewColumn>
 
                <t:GridViewColumn Header="{x:Static p:Resources.AddStandardWindow_Accuracy}"
                                  Width="10*" Background="#D8E5F0">
                    <t:GridViewColumn.CellTemplate>
                        <DataTemplate>
                            <TextBox Style="{StaticResource OverrideDefaultTextBoxStyle}" KeyDown="OnKeyDown" Text="{Binding Accuracy,
                                NotifyOnSourceUpdated=True, UpdateSourceTrigger=PropertyChanged}" SourceUpdated="OnNominalOrAccuracySourceUpdated" />
                        </DataTemplate>
                    </t:GridViewColumn.CellTemplate>
                </t:GridViewColumn>
 
 
                <t:GridViewColumn Header="{x:Static p:Resources.AddStandardWindow_Precision}"
                                      Width="10*"
                                      Background="#D8E5F0">
                    <t:GridViewColumn.CellTemplate>
                        <DataTemplate>
                            <TextBox KeyDown="OnKeyDown" Text="{Binding Presition, NotifyOnSourceUpdated=True, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource OverrideDefaultTextBoxStyle}">
                            </TextBox>
                        </DataTemplate>
                    </t:GridViewColumn.CellTemplate>
                </t:GridViewColumn>
                                   
                <t:GridViewColumn Header="{x:Static p:Resources.AddStandardWindow_Min}" Width="10*">
                    <t:GridViewColumn.CellTemplate>
                        <DataTemplate>
                            <TextBox Style="{StaticResource OverrideDefaultTextBoxStyle}" KeyDown="OnKeyDown" Text="{Binding Minimum, NotifyOnSourceUpdated=True, UpdateSourceTrigger=PropertyChanged}" SourceUpdated="OnMinOrMaxSourceUpdated">
                            </TextBox>
                        </DataTemplate>
                    </t:GridViewColumn.CellTemplate>
                </t:GridViewColumn>
                <t:GridViewColumn Header="{x:Static p:Resources.AddStandardWindow_Max}" Width="10*">
                    <t:GridViewColumn.CellTemplate>
                        <DataTemplate>
                            <TextBox Style="{StaticResource OverrideDefaultTextBoxStyle}" KeyDown="OnKeyDown" Text="{Binding Maximum, NotifyOnSourceUpdated=True, UpdateSourceTrigger=PropertyChanged}" SourceUpdated="OnMinOrMaxSourceUpdated">
                            </TextBox>
                        </DataTemplate>
                    </t:GridViewColumn.CellTemplate>
                </t:GridViewColumn>
                <t:GridViewColumn Width="40">
                    <t:GridViewColumn.CellTemplate>
                        <DataTemplate>
                            <Image Source="/Images/UpDown.png" Height="34" Width="34" Stretch="None"/>
                        </DataTemplate>
                    </t:GridViewColumn.CellTemplate>
                </t:GridViewColumn>
 
             
             
            </t:RadGridView.Columns>
        </t:RadGridView>

P.S. I am not using these events here in this xaml. IS there any work around?

Thank you,
Ihor.
Nedyalko Nikolov
Telerik team
 answered on 19 Dec 2012
5 answers
441 views
Hi,

I have a RadGridView and I bind a collection of objects (a large amount of data). I also have a context menu which is associated to each grid row and each context menu option will modify the grid view.
At this moment, every time an option is selected through context menu I refresh (rebind) all object collection which contain the correct information. The problem is that works fine when there are a few elements which is not my case.

So, I would like to know if there exists a way to "refresh" only the row which refer to opened context menu in order to avoid the actual lag.
Hadrien
Top achievements
Rank 1
 answered on 19 Dec 2012
1 answer
213 views
I am having trouble getting the RadPDF Viewer to bind to a wcf stream.

I am able to work with the stream and collect the bytes of the PDF in test so I know the wcf constructs are working,  however when I attempt to bind the radPDFViewer to the stream object from wcf I get the error below. Is the RadPDFviewer only able to support memory stream and file streams?

A first chance exception of type 'System.NotSupportedException' occurred in Telerik.Windows.Documents.Fixed.dll

... snippet from wcf call.

StreamAttachment = client.DownloadAttachment(txtDocumentOID.Text); PdfDocumentSource source = new PdfDocumentSource(StreamAttachment); //, FormatProviderSettings.ReadOnDemand); this.pdfViewer.DocumentSource = source; this.pdfViewer.DocumentSource.Loaded += (s, e) => { StreamAttachment.Close(); };

Thanks
Kammen
Telerik team
 answered on 19 Dec 2012
1 answer
82 views
Hello,

I have a question I've not found answer yet. I have a ScheduleView control, with a lot of coincidental appointments. I do need the ScheduleView to show them superimposed, the shorter over the larger ones, instead of show them side by side. Is this scenario possible? 

Thank you in advance.
Yana
Telerik team
 answered on 19 Dec 2012
1 answer
243 views
i've read some of the threads in the forum about how to style the item in Ganttview controls,such as the thread "specific color for each type of task " , the thread "Tree column frustrations ", the thread "Adding to GanttView Style "
but i still can not set the background color of the tree column item as same as the color of the task shown in the example program attachment in the thread "specific color for each type of task",and i can not set the color using DataTemplate for the column.
Is there any way in the current code to have the TreeColumn item background to be same as the task background color in the list ? How do I get at my data item from within a DataTemplate? The data context doesn't appear to be correct.
hope for your help
Masha
Telerik team
 answered on 19 Dec 2012
1 answer
131 views
Hi,

I upgraded my controls to WPF Q3 2012 (2012.3.1017.40) from 2012.1.215.40.

We have a button to reset all filters at once on top of the grid. It calls 1 line of code in the on click event.
<grid>.FilterDescriptors.Clear();

It has been working forever but after the upgrade has started showing intermittent issues. It does not happen all the time. Its not machine specific.Once it happens it does not correct itself and the only option is closing the app and reopening. There is no set of steps to reproduce the issue, and it seems to be very random.

The error & stacktrace is below,
MESSAGE:Object reference not set to an instance of an object.
STACKTRACE:   MESSAGE:Object reference not set to an instance of an object. STACKTRACE:   at Telerik.Windows.Controls.Data.DataFilter.CompositeFilterViewModel.FilterViewModelCollection.get_FilterDescriptors()
   at Telerik.Windows.Controls.Data.DataFilter.CompositeFilterViewModel.FilterViewModelCollection.Telerik.Windows.Data.IWeakEventListener<System.Collections.Specialized.NotifyCollectionChangedEventArgs>.ReceiveWeakEvent(Object sender, NotifyCollectionChangedEventArgs args)
   at Telerik.Windows.Data.WeakEvent.WeakListener`1.Handler(Object sender, TArgs args)
   at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
   at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at Telerik.Windows.Data.ObservableItemCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at Telerik.Windows.Data.RadObservableCollection`1.ResumeNotifications()
   at Telerik.Windows.Data.CollectionHelper.Reset(IEnumerable source, IList target, Func`2 itemConverter)
   at Telerik.Windows.Data.ObservableCollectionManager.HandleCollectionChanged(IList sender, NotifyCollectionChangedEventArgs args)
   at Telerik.Windows.Data.ObservableCollectionManager.Telerik.Windows.Data.IWeakEventListener<System.Collections.Specialized.NotifyCollectionChangedEventArgs>.ReceiveWeakEvent(Object sender, NotifyCollectionChangedEventArgs args)
   at Telerik.Windows.Data.WeakEvent.WeakListener`1.Handler(Object sender, TArgs args)
   at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
   at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at Telerik.Windows.Data.ObservableItemCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at System.Collections.ObjectModel.ObservableCollection`1.ClearItems()
   at Telerik.Windows.Data.RadObservableCollection`1.ClearItems()
   at Telerik.Windows.Data.ObservableItemCollection`1.ClearItems()
   at System.Collections.ObjectModel.Collection`1.Clear()
   at <removed [Button_Click(s,e)]>


Help!

Thanks,
Erol
Yordanka
Telerik team
 answered on 19 Dec 2012
1 answer
117 views
Hi,

is there a list with all new WPF-Controls coming up 2013?

Thanks
Best Regards
Rene
Vlad
Telerik team
 answered on 19 Dec 2012
0 answers
73 views
Hi ,

I need to display Group header at the top of the child grid, But i am not implementing any grouping here, Simply i need to display the data in the child grid with a header.
Number of records in the child grid will be shown in the header.
how can i implement this, kindly help..


Thanks
Somasekharan
Somasekharan
Top achievements
Rank 1
 asked on 19 Dec 2012
0 answers
139 views
Hello,

First to say that Telerik team did excellent job, Bravo!!!

I have used previously some of the telerik controls and it was for ASP.net, and I had no problems at all/

This time I downloaded demos as Visual Studio projects and I wanted to give it a shot about its functionality. But I reached a dead end.

Every single project when I try to run it gives me 2 errors:
Can someone just give me some information, so I can start playing with these tools :)


Thanks


1. Project File Does Not Exist
2. Error 2 The command ""C:\Program Files (x86)\Telerik\RadControls for WPF Q1 2012\Demos\Examples\Carousel\..\..\ProjectFilesListGenerator\Compiled\ProjectFilesListGenerator.exe" /ProjectDir:'C:\Program Files (x86)\Telerik\RadControls for WPF Q1 2012\Demos\Examples\Carousel\' /OutputFileName:FilesList.xml /FileExtensions:cs,vb,xaml,txt,xml
"C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" "C:\Program Files (x86)\Telerik\RadControls for WPF Q1 2012\Demos\Examples\Carousel\ProjectReferencesListGenerator.proj" /target:WriteReferencesToFile /property:References="System.XAML;System;System.Data;System.Xml;System.Core;System.Xml.Linq;System.Data.DataSetExtensions;Telerik.Windows.Controls;Telerik.Windows.Controls.DataVisualization, Version=2010.1.422.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL;Telerik.Windows.Controls.Input;Telerik.Windows.Controls.Navigation;Telerik.Windows.Data;WindowsBase;PresentationCore;PresentationFramework";ProjectDir="C:\Program Files (x86)\Telerik\RadControls for WPF Q1 2012\Demos\Examples\Carousel\\"." exited with code 1. Carousel.WPF

Wex
Top achievements
Rank 1
 asked on 18 Dec 2012
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?