3.2.0

PLEASE HELP!! Sorting issues

I have a grid, and the data is being loaded dynamically via an AJAX call. So far, fairly generic.

The first column of the grid (not column zero (0), which contains an ID, but the first DISPLAYED column, one (1)) contains a column of dates. The dates are being displayed correctly, no problem.

However, I need to be able to dynamically sort the grid on the first column.

I have looked - and looked and looked FOR HOURS - in the support forum. There were some loosely related topics, but nothing directly on point. I just need the method and the parameters that will allow me to sort on column number one. Something along the lines of this:

Mygrid.sort(1);

However, of course, this doesn't freaking work. So, can you tell me the correct syntax?

Thanks,

nb
Neil Bailey
July 7,
Try refresh after the sort...

Mygrid.sort(1, "ascending");
Mygrid.refresh();
Mike
July 7,
PERFECT. The syntax for the 'sort' method is really what I needed. Thank you SO much!

Neil Bailey
July 7,

This topic is archived.

See also:


Back to support forum