I want to achieve colspan in header in case of datatable. I have more than 1000 columns and they we will be repeating after certain interval, as in case of pivot solution. Like in case of example at http://pivot.webix.com/, if I move continents to the columns also and then we have 3 level of colspan nesting. How to achieve that in datatable ? Kindly provide the sample code for the same (if would be good, if above mentioned example is quoted).
P.S- I saw the complex header example of datatable, but it was not that helpful.
You need to define header property of column as array and define values for each level of header, if you need to have a colspan, just replace text value with object
Thanks for the code snippet. 1 more question regarding this, if I have to repeat same structure say 100 times now does data table provide some out of the box functionality for this or I have to calculate the values of colspan etc through some logic.
can you provide the code snippet for the same.
thanks
In case of datatable there is no helpers for header construction ( as configuration is a js object, you can use a normal js code - few nested loops - to build structure in question )