Skip to content

Commit

Permalink
Lib.Web.Mvc - Fix for DisplayAttribute.Order support
Browse files Browse the repository at this point in the history
  • Loading branch information
tpeczek committed Dec 7, 2011
1 parent 94450d7 commit 10d6236
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib.Web.Mvc/JQuery/JqGrid/JqGridRecord`1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ internal override List<object> GetValuesAsList()
{
List<object> values = new List<object>();

IEnumerable<ModelMetadata> modelMetadata = ModelMetadataProviders.Current.GetMetadataForProperties(Value, typeof(TModel));
IEnumerable<ModelMetadata> modelMetadata = ModelMetadataProviders.Current.GetMetadataForProperties(Value, typeof(TModel)).OrderBy(m => m.Order);
foreach (ModelMetadata propertyMetadata in modelMetadata.Where(p => p.ShowForDisplay && !p.IsComplexType))
{

Expand Down

0 comments on commit 10d6236

Please sign in to comment.