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

ListPicker is expanded when ContextMenu pops up

4 Answers 113 Views
ListPicker
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Yang
Top achievements
Rank 1
Yang asked on 04 Apr 2013, 04:11 PM
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;

4 Answers, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 09 Apr 2013, 03:27 PM
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.
0
Yang
Top achievements
Rank 1
answered on 19 Apr 2013, 12:59 AM
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
0
Accepted
Todor
Telerik team
answered on 23 Apr 2013, 02:03 PM
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.
0
Yang
Top achievements
Rank 1
answered on 23 Apr 2013, 03:18 PM
Hi Todor, many thanks for your detailed reply.

Cheers,
Yang
Tags
ListPicker
Asked by
Yang
Top achievements
Rank 1
Answers by
Todor
Telerik team
Yang
Top achievements
Rank 1
Share this question
or