I worked on something related to this like a year ago, I don't remember all that much about what I did. However, looking back at the code: What I was trying to do was inject an entire row into the cache (not modify the rows) (after which I resorted). I built it basically on the model of appendToCache as I recall.
You might just try looking at the cache attribute of the tablesorter object, something like the following: c = jQuery('#table').cache; totalrows = c.normalized.length; for(var i=0; i < totalrows; i++) { c.row[i][9].attr('disabled', 'disabled); } This isn't great, since it also disables the actually checked checkboxes, you could presumably test to see if they're checked before disabling them if this actually works. The way I actually did it was more complicated; I'd added into tablesorter an injectToCache(table, cache, newrow) function to tablesorter, then created an event handler for injectRow (on the model of, e.g., applyWidgets, appendCache), which I fired on the table. The existing appendCache handler, for example, has access to the cache. On Jun 25, 3:50 pm, Lee R Lemon III <leerlemon...@gmail.com> wrote: > Do you have this working somewhere I can look at.... I have some > ideas, but not sure... > > Worst case if you can not find the cached rows.... you could just > create a javascript array of the choosen row when they click the check > box then refer to your own array > > On Jun 25, 11:23 am, Darren Brierton <darren.brier...@gmail.com> > wrote: > > > > > I'm using tablesorter with the pager plugin. The last cell of each row > > in the table contains a checkbox. The user should not be allowed to > > check more than 10 rows (out of several hundred); once ten checkboxes > > are checked I want to make all the others disabled. Now if I wasn't > > using the pager plugin this would be simplicity itself; using the > > pager plugin it is still simple to disable all the unchecked > > checkboxes currently displayed. But how do I access the rows of the > > table that are cached by the tablesorter plugin that are not currently > > in the DOM? I'm sure it is quite easy, I just can't seem to figure out > > how to access the cached table. I assume that once I can access the > > cache I can disable the checkboxes just as I would the ones on the > > page (and I also assume that I still have to separately disable the > > ones on the page as well as the ones in the cache). Can anyone > > enlighten me? > > > Thanks in advance. > > > Best, Darren