A little further investigation indicates that the getFilteredRows( ) method of DataTable provides what I need to determine the corresponding row index of a DataTable cell that meets specified criteria. Most importantly, this approach is based on the current state of the DataTable and is independent of changes that might have occured over time.
On Dec 2, 11:27 am, kjh <[email protected]> wrote: > I have a google.visualization.Tablecomponent that I would like to > makedynamic. > > More specifically, I would like over time to make changes (add rows, > delete rows) to the underlying google.visualization.DataTable and have > those reflected in the display. > > A row to be deleted depends on a (unique) value contained in one of > the cells of the corresponding row of the DataTable. > > When the row is added I can store the corresponding row index > associated with the unique identifier which, in turn, can be retrieved > if asked to delete the row with same unique identifier. > > I also want to allow sorting of thetablefrom the UI by clicking on > the column headers. > > If sorting thetablemakes changes to the structure of the underlying > DataTable, my scheme for associating row indices with unique > identifiers at the time an element/row is added to thetableno longer > works. > > Does sorting atablefrom the UI by clicking on the column headers > modify the underlying DataTable or just the HTML formatted display of > the data? -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. 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.
