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

With razor pages

1 Answer 238 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Arnaud
Top achievements
Rank 1
Arnaud asked on 11 Sep 2018, 01:44 PM

I am trying to use Telerik with Core 2.0 and razor pages

            @(Html.Kendo().Menu()
                .Name("Menu")
                .Items(items =>
                {
                    items.Add()
                        .Text("Home")
                        .Action("Index", "Index");

What parameter(controller) should I use for Action since there is no more controller?

Thank you.

 

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 14 Sep 2018, 09:49 AM
Hello Arnaud,

You should be able to use the Url() option to point to the page handler as follows:
@(Html.Kendo().Menu()
    .Name("Menu")
    .Items(items =>
    {
        items.Add()
        .Text("test")
        .Url("/Index?handler=redirect");
 
    })
)

Additional information about page handlers could be found in the Introduction to Razor Pages in ASP.NET Core article on MS docs.

Regards,
Dimitar
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Menu
Asked by
Arnaud
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or