2

Does anyone know of any plugins/extentions to the YUI Datatable that will allow column sorting similar to how a sharepoint grid works.

I'm looking for something that works/looks a bit like this from sharepoint (click on the clumn header, and a drop down appears with options to filter the datatable based on the data in that column): Sharepoint grid column filter http://drop.io/download/public/eoq8cfcggp0bkw8wejlk/fb8b74641fc499f205222c7bc128644fef046a80/16a2e690-486e-012b-de36-00127994f632/08a51310-85e6-012c-5ac8-fc75480d82c3/v2/thumbnail_large

Anyone have any ideas?

Thanks.

TehOne
  • 2,569
  • 3
  • 26
  • 36

2 Answers2

1

Can't you just use context menu like this:

http://developer.yahoo.com/yui/examples/datatable/dt_contextmenu.html

Vladislav Rastrusny
  • 29,378
  • 23
  • 95
  • 156
  • 1
    I "could" do a lot of different things I suppose. But what my boss specifically wanted was the same type of functionality as in SharePoint as shown in my original question. – TehOne Sep 17 '09 at 20:00
  • Menus like that are probably the quickest way to get something close to sharepoint without writing it yourself – Gabe Moothart Sep 17 '09 at 21:13
1

I do not believe that anything like this currently exists. Ascending/Descending sort is supported out of the box, but I assume you know that.

Filtering can be done (there are examples here and here), but not with the UI you want. You should probably tell your boss that the cost involved in your writing this feature to satisfy his whim is probably not worth the benefit, and you should find another UI paradigm that's easier to implement.

That said, if you do decide to subclass the DataTable to do something like this, please do submit your changes back to YUI so that everyone can benefit from them

Gabe Moothart
  • 31,211
  • 14
  • 77
  • 99
  • Thanks for the information. I don't think I'll be given time to implement this using YUI. I am a bit surprised though that this doesn't already exist. Seems like a useful feature. Oh well, I guess we'll just have to stick with using the dev-ex grid for now. Thanks for the links though. – TehOne Sep 17 '09 at 21:13
  • @TehOne no problem. I was just about to post another answer suggesting you use a DevEx grid instead :-) – Gabe Moothart Sep 17 '09 at 21:22