This is a migrated thread and some comments may be shown as answers.

GanttView unhandled error

7 Answers 23 Views
GanttView
This is a migrated thread and some comments may be shown as answers.
Sachin
Top achievements
Rank 1
Sachin asked on 11 Aug 2014, 03:29 PM
Hi,
I'm getting this unhandled error exception while using GanttView. Any help is really appreciated.

Message: Unhandled Error in OATI Application
Code: 4004
Category: ManagedRuntimeError
Message: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at Telerik.Windows.Controls.Scheduling.HierarchicalGroupInfoAdapter.get_Item(GroupKey key)
   at Telerik.Windows.Controls.GanttView.GanttGroupsDataSource.<GetGroupsForItem>b__0(GroupKey key)
   at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
   at Telerik.Windows.Controls.GanttView.RowHighlightingAndSelectionData.GetHierarchicalItemForEvent(Object e)
   at Telerik.Windows.Controls.GanttView.RowHighlightingAndSelectionData.get_HighlightedRow()
   at Telerik.Windows.Controls.GanttView.GanttGroupsDataSource.get_HighlightedRow()
   at Telerik.Windows.Controls.GanttView.GanttGroupsDataSource.<GetVisibleData>d__1.MoveNext()
   at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
   at Telerik.Windows.Rendering.LogicalCanvasPanel.MeasureContainers(IContainerRecycler recycler, Size availableSize)
   at Telerik.Windows.Rendering.Virtualization.VirtualizedPanel.MeasureOverride(Size availableSize)
   at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)

7 Answers, 1 is accepted

Sort by
0
Polya
Telerik team
answered on 12 Aug 2014, 08:24 AM
Hi Sachin,

Thank you for providing the exception trace.
However, it does not provide enough information in order for us to reproduce the issue.
Could you please provide more information about the project and scenario that causes this exception.
A sample project or code snippet will be very helpful.

Regards,
Polya
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Sachin
Top achievements
Rank 1
answered on 12 Aug 2014, 09:07 AM
Hi,
We don't get this exception every time, this just occurs randomly. So we're not sure what is it that is causing this problem.

We're highlighting the rows in GanttView and that works fine most of the time. The collection that is assigned to HighlightedItemsSource property is a subset of ItemsSource property itself.
0
Polya
Telerik team
answered on 13 Aug 2014, 03:16 PM
Hello Sachin,

We are not aware of such an issue. I am afraid that we need more information in order to reproduce it on our side - a sample project or steps to reproduce would be also very helpful. At this point with the available information we are unable to propose a solution.

If you manage to isolate the issue or provide steps to reproduce it on our side we would be glad to assist you further.

Regards,
Polya
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Rahul
Top achievements
Rank 1
answered on 12 Sep 2014, 06:54 AM
I am getting same error.
0
Polya
Telerik team
answered on 12 Sep 2014, 10:37 AM
Hi Rahul,

We have investigated where the issue might lie at our side but at no avail. We cannot reproduce the described exception.
Could you please isolate the problem in a sample project in so we can help resolve it.

Regards,
Polya
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Lakhvinder Singh
Top achievements
Rank 1
answered on 12 Sep 2014, 02:09 PM
Hi ALL,
I am facing the same issue.
Steps to reproduce the issue

<telerik:RadGanttView.Columns>
<telerik:TreeColumnDefinition Header="Id" x:Name="Id" />
<telerik:ColumnDefinition Header="StartDate" x:Name="Start"  MemberBinding="{Binding StartString}" />
<telerik:ColumnDefinition Header="End Date" x:Name="End"  MemberBinding="{Binding EndString}" />


When I bind these control in my page. It will load fine.

But when refresh my display, then while loading if I hover on the rows that are previously bind on the current, then it will give an error and break my application.

For now I have fix this with showing busy indicator.

Please provide a proper fix.

.







0
Polya
Telerik team
answered on 15 Sep 2014, 10:14 AM
Hello Lakhvinder Singh,

Thank you for providing the sample code. Unfortunately, the information provided is insufficient for us to setup it at our side. What do you mean by refresh the display, how do you reload the RadGanttView?
Could you please open a support ticket and attach the project that you described.

Looking forward to your reply.

Regards,
Polya
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
GanttView
Asked by
Sachin
Top achievements
Rank 1
Answers by
Polya
Telerik team
Sachin
Top achievements
Rank 1
Rahul
Top achievements
Rank 1
Lakhvinder Singh
Top achievements
Rank 1
Share this question
or