Welcome Guest Search | Active Topics | Sign In | Register

Sort numeric values in Grid Options
Roger Jordan
Posted: Thursday, August 5, 2010 10:27:42 AM
Rank: Member
Groups: Member

Joined: 12/29/2008
Posts: 29
Hi,

I tried to populate a grid with numeric data (integer). If I then click on the header to sort the list (client mode) the list sorts, but not correct for numeric values, it is sorted like a string.

So I tried to set the data type:
<eo:StaticColumn AllowSort="True" DataField="orgID" HeaderText="OrgID" Name="" Width="200" DataType="Integer">

But nothing changes.

By the way: I set the DataType directly in code, because the visual designer does not take over this attribut.

Version: 6.0.51.2

Regards,
Roger
eo_support
Posted: Thursday, August 5, 2010 5:29:08 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Currently DataType is only used when the Grid data is posted back to the server side so that GridCell.Value will match DataType. This is not done on the client side so when sorting on the client side, everything is still being handled as string. We will look into this and see if we can perform the conversion on the client side as well. If we do implement that we will post a new build and also reply this post again.

Note if you already have a license for an older version, you may need to place an upgrade order to use this version. Most purchases receive free upgrade for one year. After one year an upgrade order is needed to use newer versions.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.