:: Forum >>

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
Friday, December 8, 2006
Alright.. i got it.
Gopinath
Friday, December 8, 2006
Would be nice if you told the rest of us how "you got it"....?
Tuesday, June 12, 2007
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)
Tuesday, June 12, 2007
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
Tuesday, June 12, 2007

This topic is archived.


Back to support forum

Forum search