Comments
Sort by recent activity
@CreateAndInject I just encountered the same problem when using server-side DataTables plugin in a ASP.NET Web Forms Site, along with Zack Owen's DataTable parser. I extracted the source code with JustDecompile and .NET Reflector, and that gave me reordered data (though the column titles were right).
For instance, I had these columns: Id | Name | Birth date
1234 | John Doe | 31/12/1990
that were displayed like so: Id | Name | Birth date
31/12/1990 | 1234 | John Doe
This is because Reflector transformed this code:
public class DTNomenclature
{
public int PersonID { get; set; }
public string PersonName { get; set; }
public DateTime PersonBirth { get; set; }
}
into this one:
public class DTNomenclature
{
public DateTime PersonBirth { get; set; }
public int PersonID { get; set; }
public string PersonName { get; set; }
}
... causing the DataTables parser to get the and display the data in the wrong order.
The problem occurs here (for those who would came across this post):
public FormatedList Parse()
{
var list = new FormatedList();
list.Import(_properties.Select(x => x.Name).ToArray());
...
/ comments
@CreateAndInject I just encountered the same problem when using server-side DataTables plugin in a ASP.NET Web Forms Site, along with Zack Owen's DataTable parser. I extracted the source code with ...