Telerik Forums
UI for WPF Forum
3 answers
173 views
Hi,

I use ScheduleView in a WPF Application and I've got a problem running it on a Tablet PC : When the application starts, an exception is thrown indefinitely :
System.ArgumentNullException: La valeur ne peut pas être null.
Nom du paramètre : collection
   à System.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
   à System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   à Telerik.Windows.Automation.Peers.RadDateTimePickerAutomationPeer.GetChildrenCore()
   à System.Windows.Automation.Peers.AutomationPeer.EnsureChildren()
   à System.Windows.Automation.Peers.AutomationPeer.UpdateChildren()
   à System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   à System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   à System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   à System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   à System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   à System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   à System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   à System.Windows.ContextLayoutManager.fireAutomationEvents()
   à System.Windows.ContextLayoutManager.UpdateLayout()
   à System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
   à System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
   à System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   à System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   à System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   à System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
   à System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)

I use the 2012.2.0912.35 version of telerik components on Framework 3.5.

Can you help me with this ?

Thanks
Philippe
Ventzi
Telerik team
 answered on 29 Apr 2013
4 answers
90 views
is this telerik tilelist can be resize and the position is it can be preserved after the closed? any option..
Juzailie
Top achievements
Rank 2
 answered on 29 Apr 2013
2 answers
143 views
Hi,

Is there a property to control the size of the filter window?.  The buttons at the bottom (i.e. Clear Filter) as not visible.  It appears that there are to many item shown in the list with the check boxes.  I am using a split screen with the gridview getting about half the space.  If I give the grid more screen space it works ok.  Of course this is not acceptable.  For your information I am using a Dynamic Class Object for ItemsSource and creating the columns programatically.

Thanks
Rich
Richard Harrigan
Top achievements
Rank 1
 answered on 28 Apr 2013
10 answers
241 views
Was hoping the forum users could put a few different needle styles out here.
MarkInTexas
Top achievements
Rank 1
 answered on 27 Apr 2013
1 answer
266 views
Hi, I'm binding my ChartView to RadObservableCollection in a ViewModel, but I'm getting exceptions about trying to add to collection during CollectionChanged event handler working.
I'm suspending collection's notifications and resume them after adding element, but still getting this error (btw, only when chart becoming visible). Doing that from separate thread through Dispatcher.Invoke, also tried without that - not helping.
There are about 5-10 add operations per second. Can be more, can be less sometimes.
I was even trying to lock collection with locker object and then with (Collection as ICollection).SyncRoot. It doesn't help, only changing exception to InvalidArgumentException (index is out of range).
So, I'm frustrated
<telerik:RadCartesianChart x:Name="Chart"
                                   EmptyContent="Нет данных"
                                   Grid.Row="0"
                                   Grid.Column="0"
                                   Grid.ColumnSpan="2">
            <telerik:RadCartesianChart.Grid>
                <telerik:CartesianChartGrid MajorLinesVisibility="None"
                                            StripLinesVisibility="XY">
                    <telerik:CartesianChartGrid.YStripeBrushes>
                        <SolidColorBrush Color="SlateGray" />
                        <SolidColorBrush Color="SlateGray"
                                         Opacity="0.8" />
                    </telerik:CartesianChartGrid.YStripeBrushes>
                </telerik:CartesianChartGrid>
            </telerik:RadCartesianChart.Grid>
            <telerik:RadCartesianChart.VerticalAxis>
                <telerik:LinearAxis Minimum="0"
                                    MajorStep="5"
                                    Maximum="100"
                                    FontFamily="Segoe UI"
                                    FontSize="16"
                                    FontWeight="Bold"
                                    HorizontalLocation="Left"
                                    ElementBrush="Black" />
            </telerik:RadCartesianChart.VerticalAxis>
            <telerik:RadCartesianChart.HorizontalAxis>
                <telerik:DateTimeContinuousAxis MajorStepUnit="Minute"
                                                LabelInterval="10"
                                                FontFamily="Segoe UI"
                                                PlotMode="OnTicks"
                                                LabelFormat="HH:mm:ss.f"
                                                Minimum="{Binding HeatStartTime}"
                                                Maximum="{Binding HeatEndTime}" />
            </telerik:RadCartesianChart.HorizontalAxis>
            <telerik:LineSeries CategoryBinding="Time"
                                ValueBinding="CO"
                                ItemsSource="{Binding GasAnalysisChartData}"
                                Stroke="Red"
                                StrokeThickness="2">
            </telerik:LineSeries>
            <telerik:LineSeries CategoryBinding="Time"
                                ValueBinding="H2"
                                ItemsSource="{Binding GasAnalysisChartData}"
                                Stroke="Lime"
                                StrokeThickness="2">
            </telerik:LineSeries>
            <telerik:LineSeries CategoryBinding="Time"
                                ValueBinding="N2"
                                ItemsSource="{Binding GasAnalysisChartData}"
                                Stroke="Black"
                                StrokeThickness="2">
            </telerik:LineSeries>
            <telerik:LineSeries CategoryBinding="Time"
                                ValueBinding="O2"
                                ItemsSource="{Binding GasAnalysisChartData}"
                                Stroke="Blue"
                                StrokeThickness="2">
            </telerik:LineSeries>
            <telerik:LineSeries CategoryBinding="Time"
                                ValueBinding="Ar"
                                ItemsSource="{Binding GasAnalysisChartData}"
                                Stroke="Fuchsia"
                                StrokeThickness="2">
            </telerik:LineSeries>
            <telerik:LineSeries CategoryBinding="Time"
                                ValueBinding="CO2"
                                ItemsSource="{Binding GasAnalysisChartData}"
                                Stroke="Yellow"
                                StrokeThickness="2">
            </telerik:LineSeries>
        </telerik:RadCartesianChart>

private void ProcessGasAnalysisDataPiece(FlexEvent fex)
        {
            lock ((GasAnalysisChartData as ICollection).SyncRoot)
            {
                var gdata = new GasAnalysisChartDataModel
                {
                    Ar = (double)fex.Arguments["Ar"],
                    CO = (double)fex.Arguments["CO"],
                    CO2 = (double)fex.Arguments["CO2"],
                    H2 = (double)fex.Arguments["H2"],
                    N2 = (double)fex.Arguments["N2"],
                    O2 = (double)fex.Arguments["O2"],
                    Time = fex.Time
                };
                GasAnalysisChartData.SuspendNotifications();
                GasAnalysisChartData.Add( gdata );
                GasAnalysisChartData.ResumeNotifications();
            }
Sergey
Top achievements
Rank 1
 answered on 27 Apr 2013
0 answers
152 views
Hi telerik:
     View:
<Window.Resources>
        <HierarchicalDataTemplate x:Key="TreeItemTemplate" ItemsSource="{Binding Children}">
            <TextBlock Text="{Binding Header}" />
        </HierarchicalDataTemplate>
        <Style TargetType="telerik:RadTreeViewItem">
            <Setter Property="IsExpanded" Value="true" />
            <Setter Property="IsSelected" Value="{Binding Selected, Mode=TwoWay}" />
            <Setter Property="IsExpanded" Value="{Binding Expanded, Mode=TwoWay}" />
            <Setter Property="IsEditable" Value="{Binding IsEditable, Mode=TwoWay}"/>
            <Setter Property="IsInEditMode" Value="{Binding IsInEditMode, Mode=TwoWay}"/>
        </Style>
    </Window.Resources>
    <Grid>
        <StackPanel>
            <Button Content="Add" Margin="0,20" Width="40" HorizontalAlignment="Left" Click="Button_Click"></Button>
        <telerik:RadTreeView Grid.Row="1" IsEditable="True"
                telerik:AnimationManager.IsAnimationEnabled="False" ItemsSource="{Binding Items}"
                ItemTemplate="{StaticResource TreeItemTemplate}"
                             ScrollViewer.VerticalScrollBarVisibility="Auto"/>
        </StackPanel>
    </Grid>


When I Add a Item,set the IsInEditMode=true,click the Add button continuously,the last time added item,the Name will be null

why?

Bill
Top achievements
Rank 1
 asked on 27 Apr 2013
1 answer
75 views
So I've dragged a RadRichTextBox onto a window, and decided to see what properties are available to me for the control, but looking at them in the Properties window in VS 2012. When I get to the point of clicking on the Miscellaneous section I get an error (please see attached). I've tried this in more than 1 new project, and it does it consistently. Why? What's going on?

I'm working with Telerik.Windows.Controls runtime version 4.0.30319. And version number: 2012.3.1017.45
Vasil
Telerik team
 answered on 26 Apr 2013
1 answer
228 views
Hello,

Today, I added support for multiple selection in our tool. We are using the WPF RadPropertyGrid. 

So we modified the control to use :
SelectionMode="Multiple" and PropertySetMode="Intersection".

I am using the EditorTemplateSelector to select a custom editor for some class types such as "Point".

Before I did this when the PropertyGrid is in single selection mode:

if (item as PropertyDefinition != null && (item as PropertyDefinition).SourceProperty.PropertyType == typeof(System.Windows.Point))
{
return PointPropertyDataTemplate;
}

Now, with multiple selection, the SourceProperty.PropertyType is always of type System.Object. I understand it is now pointing to a dynamic model but it is still be important to keep the original type somewhere else in the parameter. It doesn't make sense to me to add a massive switch case with ALL (over 400) parameters hardcoded "names", and this create software very hard to maintain. I've read that you are working on the Editor Template Attribute that we could set in code but still I want to rely on the class type for single and multiple selection to avoid filling code with redundant attribute.

Do you have any suggestion for this? 

Also, having new converters for every class type when using multiple selection is also making my software filled with dozens of converter classes. Why is multiple selection absolutely require this as the property of every selected object is of the same type.

Thank you

Simon
Ivan Ivanov
Telerik team
 answered on 26 Apr 2013
4 answers
174 views
Hi,

I'm facing a rather nasty problem here with the ChartView.

I want to draw 4 zones on the chart which show the user if a signal is off, kind of like quality zones. See attached image for an example.
The first zone is running from +infinity on Y-axis to a given Y-value, the second zone starts from this Y-value down to another Y-value.
Then there is a "normal" zone, which doesn't need to be drawn and then starting from a third Y-value down to a fourth Y-value is the third zone. Finally the fourth zone starts from the fourth Y-value up unto -infinity on Y-axis.

You'll get something like this:
-------------------------------------------------- + INFINITY
ZONE 1
-------------------------------------------------- Y-value 1
ZONE 2
-------------------------------------------------- Y-value 2
NORMAL ZONE
-------------------------------------------------- Y-value 3
ZONE 3
-------------------------------------------------- Y-value 4
ZONE 4
-------------------------------------------------- - INFINITY

I tried using the area series and this works, but it's not really nice. I need to draw the series on top off each other and the normal zone needs to be drawn too, but then in white. Doing so doesn't make the rulers show. Making the normal zone more transparent, is just awful!

So I placed a Canvas on top of the ChartView and wanted to render rectangles over the ChartView. I finally came up with a transformation algorithm since there is no method on the ChartView to convert a data-point to a pixel coordinate. Right now I'm at the point that I have this working, but... now I need to correct for the zooming & scrolling too.

This feels so wrong and hope someone can shed a light on this problem and guide me towards another path?
Bottom line, am I missing something or is my method with the Canvas the only way?

Kind regards,
Dwight
Dwight
Top achievements
Rank 1
 answered on 26 Apr 2013
1 answer
107 views
I would like to have some pseudo preview after image was changed, so I would like to get image and preview it Image control.
E.g. I would like to didplay only image of size 180x180 but if image is bigger then I would display only top /left corner, so I would like to show user what will be displayed untill he accepts changes.

I would like to know when something was changed: rotated/sizechanged/customtool and then access to the chnaged image, that's all.
Is there any event that I can handle to be notified that command was executed?
Marcin
Top achievements
Rank 1
Veteran
 answered on 26 Apr 2013
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
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?