ListPicker is expanded when ContextMenu pops up

5 posts, 1 answers
  1. Yang
    Yang avatar
    16 posts
    Member since:
    Apr 2012

    Posted 04 Apr 2013 Link to this post

    Hello,

    I captured a screen video to demo the issue.

    I add a context menu to RadListPicker, but the ListPicker is expanded when context menu popup. How do I fix this? Thanks.

    Xaml:

    <telerikInput:RadListPicker x:Name="radListPicker"
                                VerticalAlignment="Top"
                                Header="Country:"
                                InlineModeThreshold="3">
        <telerikPrimitives:RadContextMenu.ContextMenu>
            <telerikPrimitives:RadContextMenu IsFadeEnabled="False" IsZoomEnabled="False">
                <telerikPrimitives:RadContextMenuItem Content="add" />
                <telerikPrimitives:RadContextMenuItem Content="rename" />
                <telerikPrimitives:RadContextMenuItem Content="delete" />
            </telerikPrimitives:RadContextMenu>
        </telerikPrimitives:RadContextMenu.ContextMenu>
    </telerikInput:RadListPicker>

    Code behind:
    List<string> countries = new List<string>()
    {
        "United Kingdom",
        "Germany",
        "China",
        "Japan",
        "Bulgaria"
    };
    this.radListPicker.ItemsSource = countries;
  2. Todor
    Admin
    Todor avatar
    778 posts

    Posted 09 Apr 2013 Link to this post

    Hello Yang,

    Thank you for contacting us.

    We will do our best to fix this for our Service Pack, which is next week.

    Regards,
    Todor
    the Telerik team
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
  3. DevCraft banner
  4. Yang
    Yang avatar
    16 posts
    Member since:
    Apr 2012

    Posted 18 Apr 2013 Link to this post

    Hi Todor,

    I just upgraded to the latest version 2013.1.418.3040.

    I tested the above code in a new solution, but unfortunately same issue.

    Regards,
    Yang
  5. Answer
    Todor
    Admin
    Todor avatar
    778 posts

    Posted 23 Apr 2013 Link to this post

    Hello Yang,

    I'd like to apologize for the misleading information from my previous post.

    The behavior that you are trying to achieve is just not supported by our RadListPicker and RadContextMenu implementations, as it doesn't follow the expected behavior in Windows Phone. The ListPicker control as a concept, is allowing the user to choose an item among the items in the provided list and doesn't provide options for editing the collection. Both RadListPicker and RadContextMenu are supposed to open after the gesture is completed, and as you can see they follow their expected behavior. You can think about modifying your scenario so that these controls are not used simultaneously. For example, the items can reside in RadDataBoundListBox, instead of RadListPicker.

    I hope this information helps and once again apologies for the misunderstanding.

    Greetings,
    Todor
    the Telerik team
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
  6. Yang
    Yang avatar
    16 posts
    Member since:
    Apr 2012

    Posted 23 Apr 2013 Link to this post

    Hi Todor, many thanks for your detailed reply.

    Cheers,
    Yang
Back to Top
DevCraft banner