Problems while programmatically clearing JumpList's GroupDescriptors-collection

6 posts, 0 answers
  1. Jukka
    Jukka avatar
    5 posts
    Member since:
    Feb 2011

    Posted 05 Feb 2012 Link to this post

    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...
  2. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 06 Feb 2012 Link to this post

    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 >>
  3. DevCraft banner
  4. Jukka
    Jukka avatar
    5 posts
    Member since:
    Feb 2011

    Posted 06 Feb 2012 Link to this post

    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
  5. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 06 Feb 2012 Link to this post

    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 >>
  6. Jukka
    Jukka avatar
    5 posts
    Member since:
    Feb 2011

    Posted 07 Feb 2012 Link to this post

    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
  7. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 08 Feb 2012 Link to this post

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