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

ContextMenu Opening and Load More Button

1 Answer 30 Views
DataBoundListBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
bento
Top achievements
Rank 2
bento asked on 16 Sep 2013, 02:16 PM
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;
}

1 Answer, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 17 Sep 2013, 08:14 AM
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.
Tags
DataBoundListBox
Asked by
bento
Top achievements
Rank 2
Answers by
Deyan
Telerik team
Share this question
or