3.2.0

How to sort on numeric ?

Hi

I am a newbie to ActiveWidgets and I would like a help in sorting.
I have a number of columns out of which one is numeric data. How do I tell the grid control that I have to sort this column only on numeric and the rest as text. A sample code will be greatly appreciated

regards
Gopinath
Gopinath
December 8,
Alright.. i got it.
Gopinath
December 8,
Would be nice if you told the rest of us how "you got it"....?
June 12,
Please look at cellFormat property and AW.Format... classes -

http://www.activewidgets.com/aw.ui.grid/cell-format.html
http://www.activewidgets.com/aw.formats/
Alex (ActiveWidgets)
June 12,
Sorting on numeric can be done as follows:

var num = new AW.Formats.Number;
var str = new AW.Formats.String;
grid.setCellFormat([str,num,num,num,num,str]);

where str,num,num,num,num,str are the columns in your grid
Don
June 12,

This topic is archived.

See also:


Back to support forum