xaml vs code-behind?

HowdyNeighbor

Hello -
We are about to start a new project that contains a grid with many, many columns. Although we have chosen Telerik for our grid control, we are trying to decide if it is best to create the columns in xaml, or in the code-behind. We have some questions that might help us decide between the xaml and code-behind options:

1. Performance - Is there any performance drain/gain for either option? Especially with large amounts of data?
2. Features - Ex...If a new column property is added in a new version, is it ever defaulted for one option, and not the other?
3. Maintainability - Is one option better supported than the other, especially in terms of upgrades?

Is there anything else we're not considering, or any issues that might sway us in one direction, versus another? Any information you can provide would be helpful.

Thanks!

Dimitrina

From the perspective of RadGridView, there is no difference between defining the columns in XAML or code behind. This applies to all your three questions, regarding Performance, Features and Maintainability.
You can also check our online documentation on Defining Columns.

Generally I would suggest you checking the Tips and Tricks suggestions on improving performance.

Regards,
Dimitrina
Telerik

Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.