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

[Solved] Menu - Custom Authorize Attribute - Beta - 1027

5 Answers 88 Views
Menu
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jigar
Top achievements
Rank 1
Jigar asked on 28 Oct 2010, 12:03 PM
Hi,

Thanks a lot for new beta release with amazing features and new components.

Today I tried to use 1027 in my project but I got a problem with my menu. Menu is not being rendered as per the user rights. It seems that my Custom Authorized attribute is not working.

When I change version to 930 it starts working again. I have CustomAuthorize attribute with parameters. I put it on my action like mentioned below.
<CustomAuthorize(controllerName:="MyController", actionName:="Index")>
Function Index() As ActionResult

Please suggest what went wrong?

Thanks,

Jigar.

5 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 28 Oct 2010, 12:35 PM
Hi Jigar,

It is hard to determine what caused the aforementioned erroneous behavior. Could you please send us a simple test project. which reproduce the described problem. Thus I will be able to review it locally and advice you further.

Regards,
Georgi Krustev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Jigar
Top achievements
Rank 1
answered on 28 Oct 2010, 12:44 PM
Hi Georgi,

Thanks a lot for your reply.

I noticed that while rendering the menu, it is not calling the function neither OnAuthorization nor AuthorizeCore, I have implemented both the function.

When I manually access the link it works fine. Will prepare the sample project and get back to you.

Regards,

Jigar.
0
Jigar
Top achievements
Rank 1
answered on 29 Oct 2010, 11:06 AM
Hi Georgi,

Please find the sample project here.

You may like to check it with both the versions 930 and 1027. Currently I am using 1027 binary.

You can use user name test, password test123 for log-in. With 1027 implementation you can see only Home and About items in menu; ( which is not as expected ) and in 930 implementation you can see both menu items Home and About. About has sub item AboutI. ( This is as expected).

Please suggest a way to solve this.

Thanks & Regards,

Jigar.
0
Georgi Krustev
Telerik team
answered on 08 Nov 2010, 10:33 AM
Hello Jigar,

Thank you for your test project.

I was able to investigate the aforementioned erroneous behavior. I confirm it as a bug, which I am glad to inform you is already fixed. The fix will be included in the next official release of Telerik Components for ASP.NET MVC scheduled for the middle of November.

I have updated your Telerik points.

Sincerely yours,
Georgi Krustev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Jigar
Top achievements
Rank 1
answered on 08 Nov 2010, 01:23 PM
Hi Georgi,

thanks a lot for your inputs.

I really appreciate.

Regards,

Jigar.
Tags
Menu
Asked by
Jigar
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Jigar
Top achievements
Rank 1
Share this question
or