Is there a way to hide a row?
My requirement is that I have a list of data items that I want to show in the grid. When the user clicks a separate control to indicate that they don't want to see records that are out of date for example then I want to just be able to set something on those rows so that they "disappear". When the user indicates that they want to see all of the records then I want to make them reappear.
The grid actually uses two data models - data and row. The first one (data) is responsible for the content itself while the second (row) defines the list of rows (indices) and their display order (sorting). So in order to display a subset of rows you just need to provide an array of row indices into the row model. For example to display just rows 1, 2 and 5 you need
in place of the regular
else grid will forget data-row-count...
and I have implemented a table.response function to determine which rows I want to display (I'm using a CSV file to populate my grid).
The problem I have is that the table.response function does not appear to be triggered until I perform a document.write(obj) call and I don't know how to wait until the object has finished writing so that I can do the setProperty and refresh calls. If I add them to my table.response function they cause an error because the obj doesn't fully exist yet and if I add them immediately after the document.write then the variable I use to list the rows I want displayed hasn't been built yet in my table.response function.
How do I resolve this? Thanks
Where myData is the array you filled in the function.
Worked for me.
This topic is archived.
Back to support forum
Version 2Looking for AW 2.6 ?
The old site is here.