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

Problems while programmatically clearing JumpList's GroupDescriptors-collection

5 Answers 74 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.
Jukka
Top achievements
Rank 1
Jukka asked on 05 Feb 2012, 08:10 PM
Hello!

I'm evaluating the WP7-controls collection and everything's been real smooth so far.

Rough structure of the problem area:
Grid->RadJumpList->ListHeaderTemplate->RadPickerBox->RadioButton

When navigating to page, no grouping is applied. When one of the radiobuttons is selected, pickerbox gets hidden and new grouping is created based on the selection. One of these radiobuttons is for clearing any grouping applied to the list.

When i clear the GroupDescriptors-collection with something like this:

this.jumpList.GroupDescriptors.Clear();

Everything seems to be working ok, when the pickerbox closes there's no group header visible. Now, if i scroll the jumplist down a bit and then back up - group headers reappear from somewhere :-)

Any ideas what's going on here? I can provide more code samples if required.

Best Regards,
Jukka Arola

Edit 1:
More informational tidbits: I tested this with a set of data that had only single group header. Same behavior there. Additionally, i noticed that when the problem is current (groupings have reappeared) tapping a group header opens the group picker, but there's nothing to select. Just the partially transparent layer on top of the page.

Edit 2:
More testing, this time with actually looking at the rendered data :-) When the problem is current, data appears twice: Beginning of JumpList contains items in groups followed by non-grouped items. 

Edit 3:
JumpList was bound to a CollectionViewSource. I changed the itemssource to an ObservableCollection and that seems to solve this problem.

If i wouldn't have opened this thread, i probably would've spend the night banging my head against the proverbial wall :-) It usually takes about five minutes for you to discover you've tried to do something stupid after you finally go and ask about dev problem in the 'nets...

5 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 06 Feb 2012, 09:16 AM
Hello Jukka,

Thanks for writing.

As far as I understand, you have managed to resolve the undesired behavior. From the details that you are sending, however, I cannot exactly determine the reason for the issues. Therefore, if you continue facing them, I would kindly like to ask you to prepare a sample WP7 project implementing your scenario and send it to us in a newly opened support ticket so that we can directly take a look at it.

Thanks for your time.

Regards,
Deyan
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Jukka
Top achievements
Rank 1
answered on 06 Feb 2012, 09:20 AM
Hello,

yes, i managed to solve this one by myself. 

Problem was that RadJumpList was bound to an CollectionViewSource. Solution was to simply change the item source to the underlying ObservableCollection.

Would you like me to create and send a simple project where this behavior can be observed?

BR.
Jukka
0
Deyan
Telerik team
answered on 06 Feb 2012, 10:00 AM
Hello Jukka,

Thanks for getting back to me.

Yes, the scenario with using CollectionViewSource is valid and I am willing to take a look at your code to see whether there is something that breaks RadJumpList in this particular case.

Please note that you should open a new support ticket in order to be able to attach your project.

Regards,
Deyan
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Jukka
Top achievements
Rank 1
answered on 07 Feb 2012, 06:46 PM
Hello,

ok, i'll get back to you on this later. I'm a bit swamped right now, so any extra work's gotta wait a bit.

- Jukka
0
Deyan
Telerik team
answered on 08 Feb 2012, 09:54 AM
Hi Jukka,

Okay, take your time.

I will consider this thread closed for now.

When you're ready with your demo proj, please open a new support ticket and upload it there.

Thanks for your time.

Kind regards,
Deyan
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
JumpList
Asked by
Jukka
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Jukka
Top achievements
Rank 1
Share this question
or