Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 84751

Grid Sorting issue

$
0
0

Hello all,

 

I have a grid bound to a datasource that is receiving data from an odata-v4 endpoint. The data is loaded correctly and I have several columns with templates defined as the data has some complex values. One of the fields in this complex object is a date field (returned as so: "2015-09-01T00:00:00-05:00"). By default sorting by this column does not work, neither does formatting using the format property in the grid column (format: "{0:MM/dd/yyyy}"). So I realize I need to declare the field as a date type in the schema.model. Thus I have: 

 

 

schema: {
    model: {
        fields: {
            workPeriod: {
                startDate: {type: "date"}
            }
        }
    }
}

 

However, this does not seem to be declaring the type correctly. Is this not how you reference a complex object in the schema for a datasource?


Viewing all articles
Browse latest Browse all 84751

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>