I am very glad you posted this when you did, there is a problem here. You will need to create a psuedo column in the DataTable. The problem is the Table property is null when CreateExtendedProperties is called. I will get this working for the July 9th release and post an example with the tested code. Here is what the code will eventually look like:
Code:
protected override void CreateExtendedProperties(esColumnMetadataCollection extendedProps)
{
if (null == extendedProps["MySortableExtendedColumn"])
{
// Add psuedo column to the real DataTable for sorting/filtering
this.Table.Columns.Add("MySortableExtendedColumn", Type.GetType("System.String"));
esColumnMetadata col = new esColumnMetadata("MySortableExtendedColumn", this.Meta.Columns.Count + 1,
Type.GetType("System.String"));
col.PropertyName = "MySortableExtendedColumn";
col.IsTransient = true;
extendedProps.Add(col);
}
}
We use the DataTable for our sorting and filtering, thus this column needs to exist in the DataTable. However, all this being said, the "FullName" field in the example in the POST would be sortable, so if you're using the Query to get the data you could just add "<' ' as MySortableExtendedColumn>" to your query ?
EntitySpaces |
Twitter |
BLOG | Please honor our Software License