Unanswered: multiple different dataitems in dataview
I have the following problem.
I want to display several Dataitems in a dataview.
So i have lets say two classes: one with a label - togglefiel - image
and another one with label - sliderfield - image.
Now i want to get all data from my store and foreach all the elements.
For each element i want to decide if i display the dataitem version with togglefield oder sliderfield.
is this behavior even possible?
thank you in advance!
You can't, but you can have a single dataitem wich display different components looking at the record values.
That's no simple, but that's something you can do.
thank you for your answer! It is good to hear that what i want to do is possible.
Can you give me an example of how i can do it ?
I have no idea how do implement this behavior.
Has this logic to be in the dataitem class i wrote?