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

[Solved] Please How do I make ajax call with Telerek Menu

1 Answer 112 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:16 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");
                    }))


    

1 Answer, 1 is accepted

Sort by
0
Clinton
Top achievements
Rank 1
answered on 16 Aug 2011, 12:50 AM
Hi Yusuf,

I'm not sure if this helps, but I found it in another article:-

items.Add().Text("Ajax item").Text(Ajax.ActionLink(...)).Encoded(false);

Cheers

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