1. #1
    Sencha User Skynet-tx's Avatar
    Join Date
    May 2012
    Location
    Sevastopol, Russia
    Posts
    20
    Vote Rating
    1
    Skynet-tx is on a distinguished road

      0  

    Default Unanswered: Problem with data.view

    Unanswered: Problem with data.view


    Hello! I Have a problem with Ext.view.View
    snapshot of my desktop

    IMG_17052013_175558.jpg
    In my page i use a dataview with XTemplate. After, i updated my dataview and my table from template is duplicated. My code:

    {
    xtype: 'dataview',
    tpl
    : new Ext.XTemplate(
    '<table>',
    '<thead>',
    '<tr>',
    '<th>Name</th>',
    '<th>Date</th>,
    '</thead>',
    '<tbody>',
    '<tpl for=".">',
    '<tr>','<td>{name}</td>',
    '<td>{date}</td>',
    '</tpl>',
    '<tbody>',
    '</table>'),
    itemSelector:'td'
    }
    What is the problem of duplication . After update dataview is creating two tables. One with values, second - empty.

  2. #2
    Sencha User Skynet-tx's Avatar
    Join Date
    May 2012
    Location
    Sevastopol, Russia
    Posts
    20
    Vote Rating
    1
    Skynet-tx is on a distinguished road

      0  

    Default Same example

    Same example


    I have a problem with dataview who contains the data.
    Section, which doesn't exists in tpl is duplicated! In this instance - test. Maybe it's a bug of Extjs?

    var datat = [
    { src:'http://www.sencha.com/img/20110215-feat-drawing.png', caption:'Drawing & Charts' },
    { src:'http://www.sencha.com/img/20110215-feat-data.png', caption:'Advanced Data' },
    { src:'http://www.sencha.com/img/20110215-feat-html5.png', caption:'Overhauled Theme' },
    { src:'http://www.sencha.com/img/20110215-feat-perf.png', caption:'Performance Tuned' }
    ];

    var imageTpl = new Ext.XTemplate(
    '<p>test:<p>',
    '<tpl for=".">',
    '<div style="margin-bottom: 10px;" class="thumb-wrap">',
    '<img src="{src}" />',
    '<br/><span>{caption}</span>',
    '</div>',
    '</tpl>'
    );

    Ext.create('Ext.view.View', {
    data: datat,
    tpl: imageTpl,
    itemSelector: 'div',
    emptyText: 'No images available',
    renderTo: Ext.getBody()
    });

  3. #3
    Sencha User Skynet-tx's Avatar
    Join Date
    May 2012
    Location
    Sevastopol, Russia
    Posts
    20
    Vote Rating
    1
    Skynet-tx is on a distinguished road

      0  

    Default


    Result:

    test:


    Drawing & Charts

    Advanced Data

    Overhauled Theme

    Performance Tuned
    test:

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi