Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
275
Hopefully easy question: How do I determine a grid is hierarchical on the client side
posted

I have javascript code that I want to run for a number of different grids in our product.  Some of these grids are hierarchical, and some aren't.  I'm running into a bug on a non-hierarchical grid because I assumed that all non-hierarchical grids would only have a single band.  But this particular table happens to come from a DataSet that has a relation between this table and another.  So even though I'm setting the view type to not be hierarchical, and even though no grid appears on the UI, the grid.Bands.length is coming back as 2.

I didn't see a getViewType method on the client side or anything like isHierarchical.  I do see an getExpandable, but that's returning a 1, even though I don't seem to ever be able to expand this band.  Any tips?