Security trimming with hide parent with taghelpers?

1 Answer 43 Views
Menu
Bill
Top achievements
Rank 2
Iron
Bill asked on 30 Aug 2024, 08:44 PM | edited on 31 Aug 2024, 02:01 PM

I define my menu using taghelpers.  I see that the HTML helpers allow security trimming with the HideParent feature, but it appears that the taghelpers only support a boolean for security trimming and hence no way to enable the HideParent feature.  Is that true? Or is there a way to enable it?

Additionally, is there any server-side hook that can be used with the taghelper where I can perform custom filtering after the security trimming has been run but before the menu has been rendered to HTML?   This would be a workaround if HideParent is not available, as well as allow for custom filtering such as removing extra menu separators, etc.

1 Answer, 1 is accepted

Sort by
0
Accepted
Eyup
Telerik team
answered on 04 Sep 2024, 11:58 AM

Hi Bill,

 

Thank you for writing to us.

I have escalated this question to our Development Team and they have responded that the TagHelpers don't provide such configuration. Furthermore, there is no way to plug it with some workaround.

Thus, their suggestion is that you could use the HtmlHelpers syntax if this requirement is important to you.

I understand this is not good news, but at least I hope this information was clear and concise.

 

Regards,
Eyup
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.

Tags
Menu
Asked by
Bill
Top achievements
Rank 2
Iron
Answers by
Eyup
Telerik team
Share this question
or