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

OnExpanding Event

2 Answers 107 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Simon
Top achievements
Rank 1
Simon asked on 15 Apr 2020, 07:50 PM

When a menu is shown I need to be able to enable disable the sub menu items, so I need to hook an expanding event before the sub menu is rendered.

Is there any plan to add an OnExpanding event that is raised before the sub item is expanded?

2 Answers, 1 is accepted

Sort by
0
Simon
Top achievements
Rank 1
answered on 16 Apr 2020, 05:33 AM
Ignore/delete this post, I can see that I can do this using a Template.
My mindset is still based on WinForms.
0
Marin Bratanov
Telerik team
answered on 16 Apr 2020, 07:36 AM

Hi Simon,

We haven't had requests for such an event before, yet I can think of two ways do to something like this:

  • don't add the child items to the menu until they are needed (might or might not be possible with the given business logic)
  • use a template and cancel the mouseover event. If this is what you did, I'd encourage you to post this here, as it might be interesting to other people too.

 

Regards,
Marin Bratanov
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
Menu
Asked by
Simon
Top achievements
Rank 1
Answers by
Simon
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or