1. #1
    Sencha User
    Join Date
    Sep 2012
    Posts
    8
    Vote Rating
    0
    alymcgeel is on a distinguished road

      0  

    Default Unanswered: multiple different dataitems in dataview

    Unanswered: multiple different dataitems in dataview


    Hi everybody.

    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!

    best regards
    Alexander

  2. #2
    Sencha - Services Team AndreaCammarata's Avatar
    Join Date
    Jun 2009
    Posts
    1,395
    Vote Rating
    23
    Answers
    148
    AndreaCammarata has a spectacular aura about AndreaCammarata has a spectacular aura about

      0  

    Default


    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.
    Sencha Inc
    Andrea Cammarata, Solutions Engineer
    Owner at SIMACS

    @AndreaCammarata
    www.andreacammarata.com
    github: https://github.com/AndreaCammarata

    TUX components bundle for Sencha Touch 2.x.x
    https://github.com/AndreaCammarata/TUX


  3. #3
    Sencha User
    Join Date
    Sep 2012
    Posts
    8
    Vote Rating
    0
    alymcgeel is on a distinguished road

      0  

    Default


    Hi!

    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?

    best regards
    Alexander

Thread Participants: 1