GanttView unhandled error

8 posts, 0 answers
  1. Sachin
    Sachin avatar
    2 posts
    Member since:
    Dec 2013

    Posted 11 Aug 2014 Link to this post

    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)
  2. Polya
    Admin
    Polya avatar
    199 posts

    Posted 12 Aug 2014 Link to this post

    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.
     
  3. DevCraft banner
  4. Sachin
    Sachin avatar
    2 posts
    Member since:
    Dec 2013

    Posted 12 Aug 2014 Link to this post

    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.
  5. Polya
    Admin
    Polya avatar
    199 posts

    Posted 13 Aug 2014 Link to this post

    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.
     
  6. Rahul
    Rahul avatar
    1 posts
    Member since:
    Sep 2014

    Posted 12 Sep 2014 in reply to Sachin Link to this post

    I am getting same error.
  7. Polya
    Admin
    Polya avatar
    199 posts

    Posted 12 Sep 2014 Link to this post

    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.
     
  8. Lakhvinder Singh
    Lakhvinder Singh avatar
    1 posts
    Member since:
    Sep 2014

    Posted 12 Sep 2014 in reply to Polya Link to this post

    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.

    .







  9. Polya
    Admin
    Polya avatar
    199 posts

    Posted 15 Sep 2014 Link to this post

    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.
     
Back to Top
DevCraft banner