1. #1
    Sencha User
    Join Date
    Apr 2013
    Posts
    2
    Vote Rating
    0
    tombr is on a distinguished road

      0  

    Default Unanswered: Inserting custom DataItem in Dataview Sencha Touch 2

    Unanswered: Inserting custom DataItem in Dataview Sencha Touch 2


    Hi,

    Is there a way to insert a custom item in between dataItems in Dataview?

    I have a list and each dataItem has a few components (this is why I do not use List). I want to add a single row between the list's raws which will have a different design and different components (imagine an advertisement raw or a coupon raw that I can insert between two items)

    Do you have any idea how can I achieve that?

  2. #2
    Sencha User
    Join Date
    Jul 2012
    Posts
    148
    Answers
    12
    Vote Rating
    10
    pentool will become famous soon enough

      1  

    Default


    You could use XTemplates and there you can define that every, say, 5th item has a different look

  3. #3
    Sencha User
    Join Date
    Apr 2013
    Posts
    2
    Vote Rating
    0
    tombr is on a distinguished road

      0  

    Default


    Thanks, looks very useful. It seems I would have to use Ext.dataview.List.
    Is there a way to use it with Ext.dataview.component.DataItem?

Thread Participants: 1

Tags for this Thread