Unplanned
Last Updated: 16 Mar 2017 08:21 by Yehudah
Yehudah
Created on: 02 Mar 2017 10:38
Category: PivotGrid
Type: Feature Request
0
PivotGrid: Order fieldinfos by DisplayAttribute.Order
The implemented is very easily:

public class ExtendableLocalDataSourceFieldDescriptionsProvider : LocalDataSourceFieldDescriptionsProvider
{
    protected override ContainerNode GetFieldDescriptionHierarchy(IEnumerable<IPivotFieldInfo> fieldInfos)
    {
        var infos = from info in fieldInfos
                    orderby info.GetDisplayAttribute()?.GetOrder()
                    select info;
        return base.GetFieldDescriptionHierarchy(fieldInfos);
}

We will be glad to get it out of the box for all data providers.
1 comment
Yehudah
Posted on: 02 Mar 2017 10:43
*implementation