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

[Solved] How to I make asynchronous (Ajax) calls with the menu?

0 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.
Yusuf
Top achievements
Rank 1
Yusuf asked on 12 May 2011, 10:13 PM
Hi all.
Please how do I make asynchronus calls with the telerek menu.
I mean, if i were using normal link  helper

  @Html.ActionLink("Load Menu", "Menu", "LayOut", new AjaxOptions { UpdateTargetId = "viewArea" })

To make ajax call i'd write it this way

  @Ajax.ActionLink("Load Menu", "Menu", "LayOut", new AjaxOptions { UpdateTargetId = "viewArea" })
    

Now am using the Telerek menu below, how can I convert the Telerek menu to make ajax call rather than refreshing page. Thanks

    @(Html.Telerik().Menu()
                    .Name("menu")
                    .Items(menu =>
                    {
                        menu.Add().Text("Home").Action("Index", "Home");
                        menu.Add().Text("About").Action("About", "Home");
                    }))


    
Tags
Menu
Asked by
Yusuf
Top achievements
Rank 1
Share this question
or