ContextMenu Opening and Load More Button

2 posts, 0 answers
  1. bento
    bento avatar
    35 posts
    Member since:
    Aug 2013

    Posted 16 Sep 2013 Link to this post

    Hi,

    I integrate RadDataBoundListBox  that implement DataVirtualizationMode="OnDemandManual" and implement inside it also, a ContextMenu with Opening events. Because Tap event is used for view detail of selecteditem in RadDataBoundListBox, then ContextMenu use Hold event to open it. 

    Question is, how to not trigger Hold event on contextmenu or not opening context menu only for load more button ?

    Update :

    Ok I found the way using this... button in xaml i name it contain string "LoadMore"

    RadDataBoundListBoxItem item = e.FocusedElement as RadDataBoundListBoxItem;
    Button b = item.ChildrenOfType<Button>().FirstOrDefault();
    if (b.Name.Contains("LoadMore"))
    {
        e.Cancel = true;
        return;
    }
  2. Deyan
    Admin
    Deyan avatar
    2041 posts

    Posted 17 Sep 2013 Link to this post

    Hello Benyamin,

    Good that you've solved the case.

    We will consider this thread closed now.

    Do not hesitate to get back to us in case you have further questions or need assistance.

    Regards,
    Deyan
    Telerik
    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
Back to Top