Client API to load XML or JSON

4 posts, 0 answers
  1. Steven
    Steven avatar
    81 posts
    Member since:
    Dec 2011

    Posted 01 Mar 2013 Link to this post

    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.
  2. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 06 Mar 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Steven
    Steven avatar
    81 posts
    Member since:
    Dec 2011

    Posted 06 Mar 2013 Link to this post

    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.


  5. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 11 Mar 2013 Link to this post

    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.
Back to Top