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

create xml file from list

3 Answers 71 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Susi
Top achievements
Rank 1
Susi asked on 29 Jul 2012, 10:20 AM
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...!

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 30 Jul 2012, 01:19 PM
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.
0
Susi
Top achievements
Rank 1
answered on 31 Jul 2012, 01:15 PM
Thank you for your reply..But I need to  avoid DB hit for every time,so that i choosed to create xml file.
0
Peter
Telerik team
answered on 02 Aug 2012, 10:31 AM
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.
Tags
Menu
Asked by
Susi
Top achievements
Rank 1
Answers by
Peter
Telerik team
Susi
Top achievements
Rank 1
Share this question
or