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

Client API to load XML or JSON

3 Answers 70 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Steven
Top achievements
Rank 1
Steven asked on 01 Mar 2013, 08:22 PM
Is there a client API to define custom webServiceLoaders/webServiceSettings?

I'm trying to Dynamically load content from an AJAX call which returns an entire Serialized RadMenu or a refresh of specific sub-menues.

are there any Client APIs to simply say

var items = menu.get_items();
items.clear();
items.loadXml(UrlToRestService);

and

var items = menu.findItemByText("My Dirty Dynamic Menu").get_items();
items.clear();
items.loadXml(UrlToSubMenuSpecificRestService);



I can add my own prototype method to create this API, but I would like to know if anything like this already exists.
Thanks.

3 Answers, 1 is accepted

Sort by
0
Kate
Telerik team
answered on 06 Mar 2013, 08:49 AM
Hi Steven,

Unfortunately we do not currently have such an existing functionality that comes out of the box and can be used with the RadMenu control. Indeed the approach that you came up with seems to be very appropriate for the binding that you are trying to achieve. We would also appreciate it very much if you could share your solution (project that you implemented by submitting  a Code Library) with the community.

Greetings,
Kate
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Steven
Top achievements
Rank 1
answered on 06 Mar 2013, 10:08 PM
How about defining a REST service for async loads.

I can do this manually within the menu opening event but don't want to manually add something that already exists.


0
Genady Sergeev
Telerik team
answered on 11 Mar 2013, 04:58 PM
Hi Steven,

I am attaching an example that shows how to consume REST API using RadMenu.

I hope it will help you to get started.

Greetings,
Genady Sergeev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Menu
Asked by
Steven
Top achievements
Rank 1
Answers by
Kate
Telerik team
Steven
Top achievements
Rank 1
Genady Sergeev
Telerik team
Share this question
or