Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • R2-D2 11 posts 31 karma points
    Mar 15, 2012 @ 12:14
    R2-D2
    0

    Listing Properties of a Tab and Ordering

    As we solved on the previous post i did i have all the properties of a tab and its values, but when i list them i can't get the same order they have at Tab.

    Does anyone know how to get the same order?

    Thanks a lot

  • Rodion Novoselov 694 posts 859 karma points
    Mar 15, 2012 @ 21:46
    Rodion Novoselov
    0

    Hi. I remember the PropertyType.SortOrder property worked well for me.

  • R2-D2 11 posts 31 karma points
    Mar 16, 2012 @ 10:13
    R2-D2
    0

    Thanks Rodion, but i think your solution dont match with my code. I got this

       @foreach (var t in DynamicModel.Attributes)
                     {
                         if (t.AttributeDefinition.AttributeGroup.Name == "Features")
                         {
                             string propAlias = t.AttributeDefinition.Alias;
                             string propName = t.AttributeDefinition.Name;
                             if (DynamicModel.Attributes[propAlias].DynamicValue != "")
                             {
                              <li><a href="#@propAlias"><span>@propName</span></a></li>
                             }           
                         }
                     }

    Im trying to order the Properties on the tab "Features".

Please Sign in or register to post replies

Write your reply to:

Draft