Friday 1 October 2010

Clearing sorting from YUI datatable columns

I have been tearing my hair out (what's left of it) , trying to remove the sorting from a YUI datatable when we call the remote datasource again.

Fortunately, this proved to be really simple once I had spent hours walking through the code paths...

myDataTable.set('sortedBy', null);

1 comment:

  1. thank you, spent quite a while looking for that. on what event do you call the method?

    ReplyDelete