Telerik Forums
UI for WPF Forum
1 answer
129 views

I found an issue in our code that was incorrectly calling chart.Series.Clear() as well as clearing the ObservableCollection we use with the SeriesProvider.

This causes the following exception when the chart tries to redraw.

System.ArgumentOutOfRangeException
Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index
    at System.Collections.ObjectModel.Collection`1.RemoveAt(Int32 index)
    at Telerik.Windows.Controls.ChartView.RadChartBase.RemoveDynamicSeries(ChartSeries series, Int32 index)
    at Telerik.Windows.Controls.ChartView.RadChartBase.RemoveDynamicSeries()
    at Telerik.Windows.Controls.ChartView.RadChartBase.UpdateDynamicSeries(List`1 actions)
    at Telerik.Windows.Controls.ChartView.RadChartBase.OnSeriesProviderStateChanged(List`1 actions)
    at Telerik.Windows.Controls.ChartView.ChartSeriesProvider.NotifyListeners()
    at Telerik.Windows.Controls.ChartView.ChartSeriesProvider.RefreshAttachedCharts()
    at Telerik.Windows.Controls.ChartView.ChartSeriesProvider.<ScheduleRefreshAttachedCharts>b__22()
    ...

 

I've just switched from 2014 Q3 and this didn't cause any problems in that version.

Obviously this is quite simple once I found it and we shouldn't be manually changing the Series collection when using a SeriesProvider. But it wasn't easy to find when its built into a large application and the stack trace doesn't help much.

Would it be possible to silently cope with this, or perhaps throw an exception when accessing the Series if the graph is using a SeriesProvider, that would make it much easier to find the problem.

 

Heres a small project to show what happens. Just run it and click the button.

https://dl.dropboxusercontent.com/u/32945770/SeriesProviderError.zip 

 

Thanks,

Martin

Martin Ivanov
Telerik team
 answered on 27 Jan 2016
5 answers
299 views

Hi *,

I use a Chart Control (see below)

Items is a collection of Objects with different properties like X, Y, Z and each item has an Id.

My question is how can I get the value of the ID Property having a selected Item (DataPoint) by SelectedValue = "X"? 

All what I have is an object of type SelectionChangedEventArgs contains AddedPoints [SelectionChanged] but there I see only the values I render in the Chart.

Please help.

Thx

R

<telerik:BarSeries ShowLabels="True"
          ValueBinding="{Binding ElementName=radListBox, Path=SelectedValue}"                        ItemsSource="{Binding ElementName=ChartDataSource1}"/>        
     ...

<telerik:ChartDataSource  x:Name="ChartDataSource1"                              ItemsSource="{Binding Items ... 

Martin Ivanov
Telerik team
 answered on 27 Jan 2016
2 answers
211 views

I cannot seem to figure out what this column is or how to get rid of it. There is a very narrow column that appears all the way to the left in the GridView by default. It has no content, but can be moved around in between the other columns. Can anyone help?

I've attached an image to explain what I am talking about. Here's my xaml for the GridView...

 <telerik:RadGridView x:Name="VariablesGridView"
                             ItemsSource="{Binding Sequence.Variables}"
                             CanUserSortColumns="False"
                             CanUserInsertRows="False"
                             AutoGenerateColumns="False"
                             RowDetailsVisibilityMode="VisibleWhenSelected"
                             ShowGroupPanel="False"
                             RowIndicatorVisibility="Collapsed"
                             SelectionMode="Multiple">
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" Header="Name" IsReadOnly="False" IsFilterable="False"/>
                <telerik:GridViewDataColumn CellTemplate="{StaticResource VariableTypeTemplate}" Header="Type" IsReadOnly="False" IsFilterable="False"/>
                <telerik:GridViewDataColumn DataType="system:Object" DataMemberBinding="{Binding Value}" Header="Value" IsReadOnly="False" IsFilterable="False"/>
            </telerik:RadGridView.Columns>

            <telerik:RadContextMenu.ContextMenu>
                <telerik:RadContextMenu x:Name="VariablesContextMenu"
                                                ItemContainerStyle="{StaticResource RadMenuItemStyle}"
                                                Opened="ContextMenu_Opened"
                                                IconColumnWidth="0"
                                                ItemClick="ContextMenu_ItemClick" />
            </telerik:RadContextMenu.ContextMenu>
            
        </telerik:RadGridView>

Jeramy
Top achievements
Rank 1
 answered on 26 Jan 2016
13 answers
935 views
Any ideas how to use WindowInteropHelper with the RadWindow?  WindowInteropHelper wants a Window.....

private void ShowWindow(RadWindow window)
{
    WindowInteropHelper helper = new WindowInteropHelper(window);
    helper.Owner = _windowHandle;
    window.Show();
}

Thanks,
PT
Vikas
Top achievements
Rank 1
 answered on 26 Jan 2016
1 answer
184 views

How can I make the PropertyGridPresenter use physical vertical scrolling rather than logical scrolling over each property? My problem is that I have a custom editor template which takes up a large amount of vertical space, and I need to be able to scroll vertically through the template.

The attached image shows my RadPropertyGrid with an Editor Template that takes up a large amount of vertical space. As you can see, the bottom of the template is cut off.

 

Thanks

 

Stefan
Telerik team
 answered on 26 Jan 2016
8 answers
139 views

Hi,

 

Is there a way to handle multi selection in the RadTileList ?

 

 Thanks, Rémi.

Stefan
Telerik team
 answered on 26 Jan 2016
2 answers
137 views

Hello

 

Im working with TreeView and I have a little problem when a property changed and the value propagation. I attached a photo for show it better.

 

I will try explain:

 

If I change "Status" property to a parent node, this new "Status" is propagated to its  children. For example, I change to RIB2 node "Status" to disable(Gray), all children of RIB2 will change their "Status" to disable. Or I change "Status" to R2FFA node, this change will only affect to that node becouse it is last one.

 The problem I have is propapage the "Status" of a child node to parent node. The "Status" property is calculated in all parent nodes, I mean, that property comes from "Status" of subnodes, only last children nodes, have the value of "Status".

get
{
    //Si tiene representable point, devuelve su valor
    if (this.Representable_Point != null)
    {
        return this.Representable_Point.Status;
    }
    //Si no, el de sus hijos
    else
    {
        return this.Get_Child_Status();
    }
}

Any parent node has representable point,  so always calculate "the Status". Get_Child_Status will return a enum value or null.If all children have the same "Status" it will get that status, if at least one child, has different status from the rest, that method will return null.

 

Then, how can I propagate to parent node updateproperty when, child node property has changed?

 

Thank you for help!

Regards!

 

 

  

Mikel
Top achievements
Rank 1
 answered on 26 Jan 2016
2 answers
139 views

Hello,

I needed to handle alert positioning in a dual monitor setup and I was looking at this thread: http://www.telerik.com/forums/alert-position-on-dual-monitor-setup

Is it possible to set the alert offsets without needing to create another instance of RadDesktopAlertManager? I didn't want to have to drop any alerts that the user didnt handle (this.Manager.CloseAllAlerts(); on the example), and it seems there's no way to move alerts from one manager to another while retaining its position (as the user is free to move alerts around).

Fabrice
Top achievements
Rank 1
 answered on 26 Jan 2016
4 answers
342 views

I just upgraded to latest release (2016.1.112) and it looks like the Expander's icon does not follow alignment anymore. Expander expands to left and there's no header text, just the icon and vertical header alignment is set to "Center". Is this a new bug since it worked before upgrade?

Thanks,

Juha

Juha
Top achievements
Rank 2
 answered on 26 Jan 2016
1 answer
108 views

Can someone please explain why i cant see the pishpin?

 

<telerik:RadMap x:Name="radMap"
                 NavigationVisibility="Collapsed"
                ZoomLevel="2"
    IsMouseWheelZoomEnabled="False"
    IsKeyboardNavigationEnabled="False"
    MouseClickMode="None"
    MouseDoubleClickMode="None"
    MouseDragMode="None"
    ZoomBarVisibility="Collapsed" MiniMapExpanderVisibility="Collapsed" MouseLocationIndicatorVisibility="Collapsed" MouseWheelMode="None" Background="White" CommandBarVisibility="Collapsed" ScaleVisibility="Collapsed">
    <telerik:RadMap.Provider>
        <telerik:EmptyProvider />
    </telerik:RadMap.Provider>
    <telerik:InformationLayer x:Name="informationLayer">
        <telerik:InformationLayer.Reader>
            <telerik:MapShapeReader DataSource="/PCSecurityCheck;component/Resources/world.dbf"
                        Source="/PCSecurityCheck;component/Resources/world.shp"
                        ToolTipFormat="{}{CNTRY_NAME} - {SQKM|F2} sq.km." />
             
        </telerik:InformationLayer.Reader>
        <telerik:MapPinPoint telerik:MapLayer.Location="42.6957539183824, 23.3327663758679"
            Text="Sofia"
            ImageSource="Images/beacon.png" />
 
    </telerik:InformationLayer>
     
</telerik:RadMap>

Martin Ivanov
Telerik team
 answered on 26 Jan 2016
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
Slider
Expander
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?