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

IndexOutOfRangeException on closing checkboxes list by "Back" button

4 Answers 53 Views
JumpList
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Bernhard König
Top achievements
Rank 2
Bernhard König asked on 07 Jul 2012, 02:42 PM

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

4 Answers, 1 is accepted

Sort by
0
Accepted
Deyan
Telerik team
answered on 09 Jul 2012, 02:32 PM
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 >>

0
Bernhard König
Top achievements
Rank 2
answered on 10 Jul 2012, 09:13 AM
Thanks, Deyan!
0
Deyan
Telerik team
answered on 11 Jul 2012, 09:37 AM
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 >>

0
Bernhard König
Top achievements
Rank 2
answered on 12 Jul 2012, 09:35 AM
Tried it and yes it works now as expected!

Thanks again,
b.
Tags
JumpList
Asked by
Bernhard König
Top achievements
Rank 2
Answers by
Deyan
Telerik team
Bernhard König
Top achievements
Rank 2
Share this question
or