Gary Sieling

ExtJS TreePanel Example

Problem

You want to display a file manager style tree grid.

Solution

Use the Ext.chart.Chart, and set several properties under the “series” property to render a pie chart.


Discussion

The official ExtJS documentation shows how to build a tree grid from an array, which I don’t find terribly helpful. More realistic applications require JSON lookups, and must handle things like addition/removal of entries, paging, filtering, etc.

Based on commentary on other sites, this component may not be good to use if you are concerned about section 508 compliance. Ext in general is very div happy, even in situations where it should render list tags – generally they designed for flexibility, not the amount of time it takes to render your preferred browser’s developer tools. In this case, the flexibility allows the TreeGrid to render multiple columns.

Exit mobile version