User Content Model

Similar to native HTML elements, ZingGrid follows a strict content model. It defines which tags are allowed to be placed inside of each other. The following example shows the basic structure of the content model:


    <!-- may have a variety of defined parameters -->


    <!-- Define and format N numbner of columns of data -->






Not all of these are required; you are free to construct your grids using the features you need. If required elements are omitted, ZingGrid will attempt to add them automatically to the grid on render. If elements are added incorrectly, it will attempt to correct it or add missing parent elements, where possible.

Although flexible, some elements are recommended to be added manually despite the fact they will be rendered if omitted. The best example iswith. You do not need to defineelements, but if you do you should wrap them insidedirectly. This will speed up render time depending on the number of data rows the grid displays. You can see if each element is optional or not on the API Elements page.

On This Page