IndexOutOfRangeException on closing checkboxes list by "Back" button

5 posts, 1 answers
  1. Bernhard König
    Bernhard König avatar
    78 posts
    Member since:
    Nov 2009

    Posted 07 Jul 2012 Link to this post

    Hi,

    following scenario: I tap on the left side of a GroupHeader in my JumpList to open Checkbox Mode and have all items in this group automatically checked. So "GroupCheckMode" is set to "Automatic".

    Then, instead of unchecking the header again to leave Checkbox mode, I just use the "Back" button of the phone. "CheckBoxDeactivatedByBackButton" is activated.

    Because the Checkbox Mode is deactivated then but items remain checked in this case, I have some code that does this in the IsCheckModeActiveChanged event:

    this.MyJumpList.CheckedItems.Clear();

    Setting a breakpoint, I can see that 6 items are in the CheckedItems collection. Unfortunately, when this line gets executed, the following exception happens:

    System.ArgumentOutOfRangeException was unhandled
      Message=
    Parameter name: index
      StackTrace:
           at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
           at System.ThrowHelper.ThrowArgumentOutOfRangeException()
           at System.Collections.Generic.List`1.RemoveAt(Int32 index)
           at Telerik.Windows.Controls.CheckedItemsCollection`1.Clear()
           at bpk.feed7.View.MainView.HandleIsCheckModeActiveChanged(Object sender, IsCheckModeActiveChangedEventArgs e)
           at Telerik.Windows.Controls.RadDataBoundListBox.FireCheckModeChanged(Object targetItem)
           at Telerik.Windows.Controls.RadDataBoundListBox.OnIsCheckModeActiveChanged(DependencyPropertyChangedEventArgs args)
           at Telerik.Windows.Controls.RadDataBoundListBox.OnIsCheckModeActiveChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
           at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
           at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
           at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet)
           at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value)
           at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
           at Telerik.Windows.Controls.RadDataBoundListBox.set_IsCheckModeActive(Boolean value)
           at Telerik.Windows.Controls.RadDataBoundListBox.OnBackKeyPressed(CancelEventArgs e)
           at Telerik.Windows.Controls.RadJumpList.OnBackKeyPressed(CancelEventArgs e)
           at Telerik.Windows.Controls.RadDataBoundListBox.OnPageBackKeyPress(Object sender, CancelEventArgs e)
           at Microsoft.Phone.Controls.PhoneApplicationPage.ShellPageCallback_OnBackKeyPress(Object source, BackKeyPressEventArgs e)
           at Microsoft.Phone.Shell.Interop.ShellPageCallback.FireOnBackKeyPress(IntPtr pageThis)

      
    Can you please have a look at it?

    Thanks :)

    Bernhard

  2. Answer
    Deyan
    Admin
    Deyan avatar
    2038 posts

    Posted 09 Jul 2012 Link to this post

    Hello Bernhard,

    Thanks for writing and for reporting this issue.

    We have been able to reproduce the exception on our side and to identify the reason for it.

    We will address the issue and will issue an Internal Build containing it later this week.

    I have updated your account with 1000 Telerik points for bringing our attention to this.

    Kind regards,
    Deyan
    the Telerik team

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

  3. DevCraft banner
  4. Bernhard König
    Bernhard König avatar
    78 posts
    Member since:
    Nov 2009

    Posted 10 Jul 2012 Link to this post

    Thanks, Deyan!
  5. Deyan
    Admin
    Deyan avatar
    2038 posts

    Posted 11 Jul 2012 Link to this post

    Hello Bernhard,

    The IB is now available. Check it out and let us know in case you have further questions or any feedback to share.

    All the best,
    Deyan
    the Telerik team

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

  6. Bernhard König
    Bernhard König avatar
    78 posts
    Member since:
    Nov 2009

    Posted 12 Jul 2012 Link to this post

    Tried it and yes it works now as expected!

    Thanks again,
    b.
Back to Top
DevCraft banner