Telerik Forums
UI for WPF Forum
5 answers
84 views

Hello,

I have a WPF project where I am using RadDocking with 3 RadPaneGroups. I get an Index out of range error when I pin and then try to unpin a pane or if I try to pin a second item. I am able to set the pane to floatable/dockable and manipulate them that way, but when I try to unpin I get the error. I'd like to note we are targeting framework .Net Core 3.1.

Error Message:

System.ArgumentOutOfRangeException: 'Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')'

This exception was originally thrown at this call stack:
System.ThrowHelper.ThrowArgumentOutOfRange_IndexException()
Telerik.Windows.Controls.RadTabControl.RaiseIsSelectedChangedAutomationEvent(System.Windows.DependencyObject, bool)
Telerik.Windows.Controls.RadTabItem.OnIsSelectedChanged(bool, bool)
Telerik.Windows.Controls.RadTabItem.OnIsSelectedPropertyChanged(System.Windows.DependencyObject, System.Windows.DependencyPropertyChangedEventArgs)
System.Windows.DependencyObject.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs)
System.Windows.FrameworkElement.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs)
System.Windows.DependencyObject.NotifyPropertyChange(System.Windows.DependencyPropertyChangedEventArgs)
System.Windows.DependencyObject.UpdateEffectiveValue(System.Windows.EntryIndex, System.Windows.DependencyProperty, System.Windows.PropertyMetadata, System.Windows.EffectiveValueEntry, ref System.Windows.EffectiveValueEntry, bool, bool, System.Windows.OperationType)
System.Windows.DependencyObject.SetValueCommon(System.Windows.DependencyProperty, object, System.Windows.PropertyMetadata, bool, bool, System.Windows.OperationType, bool)
    ...
    [Call Stack Truncated]

Here is my XAML:

01.<telerik:RadDocking Grid.Row="3" BorderThickness="0" HasDocumentHost="False" RetainPaneSizeMode="DockingAndFloating" CanAutoHideAreaExceedScreen="True">
02.            <telerik:RadSplitContainer Orientation="Horizontal">
03.                <!--My Queries-->
04.                <telerik:RadPaneGroup>
05.                    <telerik:RadPane Header="My Queries" CanUserClose="True"  >
06.                        <StackPanel>
07.                            <Border>
08.                                <StackPanel>
09.                                    <TextBlock Text="Query Results" />
10.                                </StackPanel>
11.                            </Border>
12.                        </StackPanel>
13.                    </telerik:RadPane>
14.                </telerik:RadPaneGroup>
15. 
16.                <!--Summary-->
17.                <telerik:RadPaneGroup>
18.                    <telerik:RadPane Header="Summary" CanUserClose="True" >
19.                        <StackPanel Margin="3">
20.                            <TextBlock Text="View Summary" />
21.                        </StackPanel>
22.                    </telerik:RadPane>
23.                </telerik:RadPaneGroup>
24. 
25.                <!--Torge Charts-->
26.                <telerik:RadPaneGroup>
27.                    <telerik:RadPane Header="Torque Charts" CanUserClose="True" >
28.                        <StackPanel Margin="3">
29.                            <TextBlock Text="View Torque Charts" />
30.                        </StackPanel>
31.                    </telerik:RadPane>
32.                </telerik:RadPaneGroup>
33.                 
34.            </telerik:RadSplitContainer>
35.        </telerik:RadDocking>

 

Harry
Top achievements
Rank 1
 answered on 23 Jan 2020
1 answer
91 views

Hi all!

I have an event which triggers an async loading task in which I change data which is bound to the RadCalendar.

In my development environment I never had any issues but users on RDS-Server have. This is the stack-trace from there log: 

 

ERROR2020-01-20 11:25:28 – Fatal Error - StackTrace: ModuleContainerManager - HandleUnhandledException

WeakReferenceList`1 - IndexOf

WeakReferenceList`1 - Remove

SelectionChanger`1 - Select

SelectionChanger`1 - InsertItem

Collection`1 - Add

SelectionChanger`1 - AddJustThis

RadCalendar - AddToSelection

RadCalendar - OnSelectedDateChanged

RadCalendar - OnSelectedDateChanged

DependencyObject - OnPropertyChanged

FrameworkElement - OnPropertyChanged

DependencyObject - NotifyPropertyChange

DependencyObject - UpdateEffectiveValue

DependencyObject - InvalidateProperty

BindingExpressionBase - Invalidate

BindingExpression - TransferValue

BindingExpression - ScheduleTransfer

ClrBindingWorker - NewValueAvailable

PropertyPathWorker - UpdateSourceValueState

PropertyPathWorker - OnDependencyPropertyChanged

ClrBindingWorker - OnSourceInvalidation

BindingExpression - HandlePropertyInvalidation

BindingExpressionBase - OnPropertyInvalidation

BindingExpression - OnPropertyInvalidation

DependentList - InvalidateDependents

DependencyObject - NotifyPropertyChange

DependencyObject - UpdateEffectiveValue

DependencyObject - SetValueCommon

DependencyObject - SetCurrentValue

RadDateTimePicker - OnSelectedValueChanged

RadDateTimePicker - OnSelectedValueChanged

DependencyObject - OnPropertyChanged

FrameworkElement - OnPropertyChanged

DependencyObject - NotifyPropertyChange

DependencyObject - UpdateEffectiveValue

DependencyObject - InvalidateProperty

BindingExpressionBase - Invalidate

BindingExpression - TransferValue

BindingExpression - ScheduleTransfer

ClrBindingWorker - NewValueAvailable

PropertyPathWorker - UpdateSourceValueState

PropertyPathWorker - RefreshValue

ClrBindingWorker - ScheduleTransferOperation

DataBindOperation - Invoke

DataBindEngine - ProcessCrossThreadRequests

ExceptionWrapper - InternalRealCall

ExceptionWrapper - TryCatchWhen

DispatcherOperation - InvokeImpl

DispatcherOperation - InvokeInSecurityContext

CulturePreservingExecutionContext - CallbackWrapper

ExecutionContext - RunInternal

ExecutionContext - Run

ExecutionContext - Run

CulturePreservingExecutionContext - Run

DispatcherOperation - Invoke

Dispatcher - ProcessQueue

Dispatcher - WndProcHook

HwndWrapper - WndProc

HwndSubclass - DispatcherCallbackOperation

ExceptionWrapper - InternalRealCall

ExceptionWrapper - TryCatchWhen

Dispatcher - LegacyInvokeImpl

HwndSubclass - SubclassWndProc

nsafeNativeMethods - DispatchMessage

Dispatcher - PushFrameImpl

Dispatcher - PushFrame

Application - RunDispatcher

Application - RunInternal

Application - Run

Application - Run

App - Main

 

Do I have to take care some how of the binding or how can I catch this to prevent app crash?

Thanks for help!!!!!!

BR Gert

Martin Ivanov
Telerik team
 answered on 23 Jan 2020
1 answer
245 views

Hello!

I have ran into one unwanted behavior of RadScheduleView. I have a RadScheduleView on my view form, horizontal TimeRuler and vertical grouped recources like a rows. When I move mouse cursor below last resource row I get the slot above mouse cursor selected. Is there a way to allow only select slots when mouse cursor directrly over the slot.

Dinko | Tech Support Engineer
Telerik team
 answered on 23 Jan 2020
4 answers
326 views

Hi there,

When I try to add help content to MS Help Viewer 2.3 I get a error message:  For security reason DTD is prohibited in this XML document...

For full detail see attached screenshot. 

And my question is what can I do on my side to add WPF Help File content to my help viewer?

Bill
Top achievements
Rank 1
 answered on 21 Jan 2020
1 answer
672 views

I created a custom splashscreen usercontrol with a custom viewmodel (as explained in the docs) but when i try to update the values on the viewmodel only the original values are shown and the new values are ignored? how is this possible?

If i used the standard splashscreen it works

Vladimir Stoyanov
Telerik team
 answered on 21 Jan 2020
2 answers
502 views
I am trying to figure out how to replace the copy command with my own version that can copy the row/column headers, as well as prevent cut and paste. In other controls I handled PreviewCanExecute and PreviewExecuted, but those don't seem to get triggered here. I tried to replace the editor.Commands.Copy command but it is readonly. Same with the command descriptors.
Prashant
Top achievements
Rank 1
 answered on 21 Jan 2020
4 answers
348 views

Hi,

I'm just beginning with the syntax editor, so am using a simple test project with nothing but a RadSyntaxEditor in a MainWindow.

I am using the separate NuGet packages (version 2020.1.115) with implicit styles (Fluent theme).

What I find is that even with nothing else, I get an error from my App.xaml file saying "Cannot find resource named 'DragVisualStyle'. Resource names are case sensitive." This doesn't seem to prevent the project from building and running, but still it is an error that shows in the error list and I seem to be unable to get rid of it.

After a small amount of investigation, it does seem that the resource dictionary for the SyntaxEditor (at least for the Fluent theme, but maybe others) is referencing the DragVisualStyle without defining it. Looking at some of the other controls it seems that they do each redefine that style if they need it, so the SyntaxEditor seems to differ in that respect.

I wanted to attach a simple example solution, but can't attach .zip files, so basically reproducing this amounts to creating a new WPF project, adding PackageReferences to the SyntaxEditor and Fluent theme NuGet packages, then merging the following in App.xaml:

    <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.xaml" />
    <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/System.Windows.xaml" />
    <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.Input.xaml" />
    <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.SyntaxEditor.xaml" />

And having the following in MainWindow.xaml:

    <telerik:RadSyntaxEditor/>

Thanks

Adam
Top achievements
Rank 1
 answered on 21 Jan 2020
1 answer
140 views

I have an issue with grid selection.

If I have, for example, 10 items and i select item 7 it is correctly selected.

I then click the filter box and enter a filter which doesn't include item 7 and press enter the correctly filtered items are shown. If i click the clear filter button I would like the originally selected item 7 to be still selected (and in view) but this seems hit and miss. Sometimes it is but sometimes it could be one of the filtered items. 

Is this desired behaviour or am I missing something?

Thank you

R

Vladimir Stoyanov
Telerik team
 answered on 21 Jan 2020
3 answers
160 views

We upgraded our NOXAML libraries to the latest S3 version (october 2019), from S2.

 

Since then, all telerik controls in the project give a similar error when the visual studio XAML designer is loaded...

'Control' not found in xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"

'Control' an be any telerik Control type, like radcombobox or radgridview etc.

 

This occurs, where the control is defined inside the XAML like: <telerik:RadComboBox>...</telerik:RadComboBox>

as well as when we define a style like so...

<Style targettype="telerik:RadComboBox" BasedOn={StaticResource RadComboBoxStyle>..</Style>

 

As a solution we downgraded to the S3 version again because our project would produce over 300 of these errors, making the project difficult to manage.

As a note... The application does run like normal and the error disappear whilst Debugging.

 

Dilyan Traykov
Telerik team
 answered on 21 Jan 2020
3 answers
141 views

Hello,I am using the ScheduleView control to build a program.

There is five appointments in 1.png.I want one appointment in a line alone like steps, it will be five lines

How can I achieve that?

Dinko | Tech Support Engineer
Telerik team
 answered on 21 Jan 2020
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?