SubHeader Titles

We display sub-headers in a grid for a few columns and we specify them while building the grid. After an update we call loadXML() again to reload the grid. It reloads the data and the headers correctly but the subheaders are gone. How do I display them again?


If you reloading only data of grid - subheaders will be preserved.



        grid.clearAll();
        grid.loadXML(url);



If you clearing grid structure ( with clearAll(true) or having “head” section in new XML ) the structure of grid will be fully reinitialized, which means all existing headers will be destroyed.