Insert non-store item into DataView?
Is there a good way to insert a component into a DataView, that doesn't correspond to an item in the store? For example, I might want to add a header at the beginning, or a divider in the middle.
I know I could add a docked component, but I'm looking for something that would scroll along with the rest of the items (and use the same horizontal or vertical layout as the items).
Well, what comes to mind (out of the blue) is that you could build the dataview using an XTemplate. In the template you can have variables and all sorts of other things (check the docs).
So let's say you want to insert a divider, or some component at every n'th place. You could check the xindex template variable if it's, say (xindex % n'th === 0). If so, just insert a divider or something rather.
Tags for this Thread