Question

Je MvcContrib Grille 's

Était-ce utile?

La solution

Non. La grille des boucles que par une seule couche de propriétés. Grille MvcContrib ne sera pas percer récursive vers le bas dans votre objet.

Si vous regardez le la source :

        foreach(var property in modelMetadata.Properties)
        {
            if(!property.ShowForDisplay)
            {
                continue;
            }

            var column = For(PropertyToExpression(property));

            if(!string.IsNullOrEmpty(property.DisplayName))
            {
                column.Named(property.DisplayName);
            }

            if(!string.IsNullOrEmpty(property.DisplayFormatString))
            {
                column.Format(property.DisplayFormatString);
            }
        }
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top