create xml file from list

4 posts, 0 answers
  1. Susi
    Susi avatar
    40 posts
    Member since:
    Jul 2012

    Posted 29 Jul 2012 Link to this post

    Hi All,
    I am developing product using asp.net c sharp.I have method name is public List<Role> GetRoles(int UserId) and this method return list of Roles which is assigned user. I need to write or create xml file for user Roles to build menu control from xml file.

    That means,
    1.How to write list of Roles in xml file from returning list of Roles by this method?
    2.How to build menu control from xml file?

    Thanks in Advance...!
  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 30 Jul 2012 Link to this post

    Hello Susi,

    You don't need to create an xml file to populate RadMenu. You can use the approach from this help topic instead - Binding to object-based data sources.

    All the best,
    Peter
    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. Susi
    Susi avatar
    40 posts
    Member since:
    Jul 2012

    Posted 31 Jul 2012 Link to this post

    Thank you for your reply..But I need to  avoid DB hit for every time,so that i choosed to create xml file.
  5. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 02 Aug 2012 Link to this post

    Hi,

    You can consider Using RadMenu in a user control with OutputCache enabled.

    Greetings,
    Peter
    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