Login Register

looking for a sortable table widget

I am attempting to unify a website that uses quite the collection of JS libraries under one standard library. Dojo looks great! The only stumbling block I have found so far is a widget that I can apply to a standard html table to make it page-able and sortable. It appears there was a 'SortableTable' widget and a 'FilteringTable' widget that are now depreciated. I found the dojx.grid widget but it looks like its data can not come from a vanilla html table. I assume there is a way to do this with dojo and I am looking in the wrong place.

A point in the right direction would be greatly appreciated :)

thanks in advance

Some options

Since dojo 0.9 all representation of structured data is going to be via a store that supports the dojo.data API, with the store acting as Model, and the widget acting as Controller and View

The Grid widget supports the dojo.data API, so one option is to use the dojox.data.HtmlTableStore - that will take your html table as the data source for the grid. There's also a couple demos that show store-backed tables, such as Dojox Data Demo Table, and the Mail demo that might provide ideas.