Hmmm....that's a tough one. You need some way of identifying which rows to have to be showing at any point in time, and of identifying which rows are children of a given row. I created an example which uses "id", "parentId", and "visible" columns in the DataTable to track this information, and then I filtered the DataTable with a DataView to show only the rows and columns needed at any given point in time: http://jsfiddle.net/6xwBQ/1/
Hope that helps you. On Monday, June 25, 2012 8:15:37 AM UTC-4, Marco Megna wrote: > > Hi all, > I'm quite a novice with javascript... > Im trying to create (without much success) a hierarchical tree table. > I want a table like: > > Header > 1 Parent Row > 1.1 Child Row > 1.2 Child Row > 1.2.1 2-Child Row > 2 Parent Row > 2.1 Child Row > 2.2 Child Row > 2.3 Child Row > 3 Parent Row > > Initially only the Parent rows should be visible, then when i click on one > of them, its first level child-Rows appear, and so on... > any suggestions? > > Thanks, > Marco > > > -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/kx3V_96U6T8J. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
