Filter by checkbox
Filter by checkbox
imhalfpirate
Posts: 9Questions: 0Answers: 0
I'm using Flexbox to show a very large list of items (about 2,000) with checkboxes in one of the columns. Some are checked and some are left unchecked. I want to create a dropdown filter called "checked" and "all" where "checked" will only show the checked rows and all would show all checked and unchecked rows. How would I go about doing the filtering?
This discussion has been closed.
Replies
Allan
Allan
To build the checkbox from the JSON I'm doing an fnRender than throwing in the value the json returns, which is a string "checked" or blank. In my afnFiltering plug-in I'm alerting the aData[]; and it's bringing back the entire html checkbox . Now the problem I'm having is I can't call aData[].value or aData[].checked etc. So the problem I'm having is that i'm unable to get the value of the fnRendered checkbox. I hope that makes sense :D
[code]
var nTr = oSettings.aoData[ iDataIndex ].nTr
[/code]
Then you can use standard jQuery expression on that node.
Allan
To anybody else who needs this:
[code]
var nTr = oSettings.aoData[ iDataIndex ].nTr
var checkbox = $(nTr).find("