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

Fastest way to populate a RadMenu

3 Answers 76 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Jacky Chau
Top achievements
Rank 1
Jacky Chau asked on 02 May 2008, 03:06 PM
Is it faster to populate a RadMenu from an XML file or programmatically? 

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 02 May 2008, 05:18 PM
Hello Jacky,

I don't think there would be any noticeable difference. However, for very large menu systems, I would opt to bind the menu to an xml file.

Greetings,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Jacky Chau
Top achievements
Rank 1
answered on 02 May 2008, 05:20 PM
When binding to xml, does RadMenu just programmatically create the items behind the scene?  How will that be faster than writing my own code to create each item programmatically?
0
Dimitar Milushev
Telerik team
answered on 05 May 2008, 01:07 PM
Hello Jacky Chau,

While using an XML file may introduce a small overhead from opening and reading the file, the difference is usually negligible and we recommend using an XML file when possible because it is easier to maintain.

I hope this answers your question.

Sincerely yours,
Dimitar Milushev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Menu
Asked by
Jacky Chau
Top achievements
Rank 1
Answers by
Peter
Telerik team
Jacky Chau
Top achievements
Rank 1
Dimitar Milushev
Telerik team
Share this question
or