1. #1
    Sencha User
    Join Date
    Dec 2007
    Location
    Vienna - Europe
    Posts
    3
    Vote Rating
    0
    macharti is on a distinguished road

      0  

    Default Autonumber in Template in DataView

    Autonumber in Template in DataView


    Hi guys!

    I've added {#} to your example "Creating a Simple DataView" in the Ext.dataview.Dataview - API. It always return 1 for every record and not 1, 2, 3 ....

    i
    temTpl: ''<div>{#} - {name} is {age} years old</div>''

  2. #2
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    18
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    The only way you would receive the # is if you were within a loop inside of the record. Typically if it was a store with an association.

    There really is no autonumber within a template in a DataView as there is none on the Store.

    Sencha Inc

    Jamie Avins

    @jamieavins

Thread Participants: 1