Unhandled Exception 4004 (Q3 2011)

8 posts, 0 answers
  1. Chris
    Chris avatar
    26 posts
    Member since:
    Jul 2010

    Posted 20 Dec 2011 Link to this post

    Hello, after upgrading to Q3 2011 for silverlight I am seeing this unhandled exception:

    Unhandled Exception 4004
    ManagedRuntimeError
    System.ArgumentOutOfRangeException: Index was out of range
    Must be non-negative and less than the size of the collection

    It appears to happen when opening a ChildWindow
    Also happens when clicking on a tab folder.
    We are using VS 2010 Silverlight etc.

    Can someone help me diagnose and correct?
    Nothing I do seems to help.

  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 21 Dec 2011 Link to this post

    Hi,

     Will you post the exception stack trace? 

    Kind regards,
    Vlad
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. Chris
    Chris avatar
    26 posts
    Member since:
    Jul 2010

    Posted 21 Dec 2011 Link to this post

    I was able to resolve the issue by removing all DisplayIndex="xx" attributes from the XAML.
    The first Display Index was always set to zero and then incremented up from there.

    Did this break in Q3 2011?
  4. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 21 Dec 2011 Link to this post

    Hello,

     We are not aware of any breaks related to DisplayIndex.

    Best wishes,
    Vlad
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  5. Chris
    Chris avatar
    26 posts
    Member since:
    Jul 2010

    Posted 21 Dec 2011 Link to this post

    I am seeing unhandled exceptions when setting the DisplayIndex.
    Can you correct the issue?
  6. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 21 Dec 2011 Link to this post

    Hi,

     Can you post your grid/columns definitions and data-binding? 

    Best wishes,
    Vlad
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  7. Chris
    Chris avatar
    26 posts
    Member since:
    Jul 2010

    Posted 21 Dec 2011 Link to this post

    If any grid has the display index values set like below the error occurs even if there is no data.

    <telerik:RadGridView.Columns>
        <telerik:GridViewImageColumn Header="Priority" DisplayIndex="0" IsFilterable="False" IsGroupable="False" IsReadOnly="True" IsSortable="False" ShowDistinctFilters="False" UniqueName="PriorityImageName" DataMemberBinding="{Binding PriorityImageName}" />
        <telerik:GridViewDataColumn Header="Parameter Name" DisplayIndex="1" IsFilterable="true" IsGroupable="False" IsReadOnly="True" IsSortable="True" ShowDistinctFilters="True" UniqueName="Name" />
        <telerik:GridViewDataColumn Header="Identifier" DisplayIndex="2" IsFilterable="true" IsGroupable="False" IsReadOnly="True" IsSortable="True" ShowDistinctFilters="True" UniqueName="QualifierName" />
        <telerik:GridViewDataColumn Header="Units" DisplayIndex="3" IsFilterable="False" IsGroupable="False" IsReadOnly="True" IsSortable="False" ShowDistinctFilters="False" UniqueName="UOM.Abbreviation" />
        <telerik:GridViewDataColumn Header="Minimum" DisplayIndex="4" IsFilterable="False" IsGroupable="False" IsReadOnly="True" IsSortable="False" ShowDistinctFilters="False" UniqueName="Minimum" />
        <telerik:GridViewDataColumn Header="Typical" DisplayIndex="5" IsFilterable="False" IsGroupable="False" IsReadOnly="True" IsSortable="False" ShowDistinctFilters="False" UniqueName="Typical" />
        <telerik:GridViewDataColumn Header="Maximum" DisplayIndex="6" IsFilterable="False" IsGroupable="False" IsReadOnly="True" IsSortable="False" ShowDistinctFilters="False" UniqueName="Maximum" />
        <telerik:GridViewDataColumn Header="Op Cond" DisplayIndex="7" IsFilterable="False" IsGroupable="False" IsReadOnly="True" IsSortable="False" ShowDistinctFilters="False" UniqueName="OperatingCondition" />
        <telerik:GridViewImageColumn Header="Conditions" DisplayIndex="8" IsFilterable="False" IsGroupable="False" IsReadOnly="True" IsSortable="False" ShowDistinctFilters="False" UniqueName="ConditionImageName" DataMemberBinding="{Binding ConditionImageName}" />
        <telerik:GridViewImageColumn Header="Doc" DisplayIndex="9" IsFilterable="False" IsGroupable="False" IsReadOnly="True" IsSortable="False" ShowDistinctFilters="False" UniqueName="DocumentImageName" DataMemberBinding="{Binding DocumentImageName}" />
        <telerik:GridViewImageColumn Header="Comments" DisplayIndex="10" IsFilterable="False" IsGroupable="False" IsReadOnly="True" IsSortable="False" ShowDistinctFilters="False" UniqueName="CommentImageName" DataMemberBinding="{Binding CommentImageName}" />
    </telerik:RadGridView.Columns>
    
  8. Vera
    Admin
    Vera avatar
    268 posts

    Posted 21 Dec 2011 Link to this post

    Hi Chris,

    This issue has already been fixed and the fix for it is available with our just released Q3 SP1.

    Best wishes,
    Vera
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Back to Top