Is there any event for RadPageView when user clicks in hamburger icon?

1 Answer 110 Views
NavigationView PageView
Simos Sigma
Top achievements
Rank 2
Iron
Iron
Iron
Simos Sigma asked on 14 Aug 2022, 02:25 PM

Hello community!!!

Is there any event for RadPageView when it works as NavigationView so to fired when user click hamburger icon? I am talking about from Expanded to Compact and vice-versa?

Also I would like to know if there is any "mouseover" event for the items over hamburger icon.

Thank you for your precious time!!!

1 Answer, 1 is accepted

Sort by
1
Accepted
Dinko | Tech Support Engineer
Telerik team
answered on 15 Aug 2022, 08:41 AM

Hello Simos Sigma,

Thank you for your interest in our RadPageView control.

When the ViewMode property of the RadPageView is set to NavigationView, the ViewElement will be RadPageViewNavigationViewElement. The navigation view element exposes Expanding and Collapsing events which I think is what you are looking for. Also, from the element, you have access to the HamburgerButton control. You could subscribe to its MouseMove event or MouseHover.

public RadForm1()
{
    InitializeComponent();
    RadPageViewNavigationViewElement navigationElement = this.radPageView1.ViewElement as RadPageViewNavigationViewElement;
    navigationElement.Collapsing += navigationElement_Collapsing;
    navigationElement.Expanding += NavigationElement_Expanding;
    navigationElement.HamburgerButton.MouseMove += HamburgerButton_MouseMove;
}

private void HamburgerButton_MouseMove(object sender, MouseEventArgs e)
{
}

private void NavigationElement_Expanding(object sender, CancelEventArgs e)
{
}

private void navigationElement_Collapsing(object sender, CancelEventArgs e)
{
}

I hope that this information is helpful.

Regards,
Dinko
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Simos Sigma
Top achievements
Rank 2
Iron
Iron
Iron
commented on 15 Aug 2022, 01:25 PM

Thank you for your time!!! :-)
Tags
NavigationView PageView
Asked by
Simos Sigma
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or