filtering yui3 datatable, xml data



I am trying to filter a yui3 datatable by multiple columns by using checkboxes. If the checkbox is checked, the table will filter by that column value. The data I'm using is parsed xml which was parsed by using Y.DataType.XML.parse and Y.DataSchema.XML functionality. This functionality was available in yui2, and I am trying to upgrade our code to use yui3 but I'm having a hard time finding any good examples of this. I've seen filtering by column where values are entered in at the column level and the filtering occurs that way but I need to be able to grab all the different values for the columns I want to sort by and populate a panel with those values and have checkboxes that filter the table appropriately. Previously, the code that accessed all the potential values was something like this:


var oMainTable = YUI.ssi.oMainTable; var oMainRecords = oMainTable.getRecordSet();


I am having a hard time converting this because we aren't technically using a 'recordSet'..


If anyone could point me to a specific example or give me some insight as to how to make this filter work I'd really appreciate it. I don't have a JS Fiddle or any other example out there for people to view so suggestions would be really helpful to me! Thanks!


No comments:

Post a Comment