Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

Threaded View

  1. #1
    Sencha User
    Join Date
    Dec 2012
    Posts
    17
    Vote Rating
    0
    cs0ip is on a distinguished road

      0  

    Default Answered: [ExtJS 4.1.1a] can't create Ext.grid.Panel

    Answered: [ExtJS 4.1.1a] can't create Ext.grid.Panel


    I use this code
    Code:
    Ext.onReady(function() {
      Ext.define('MyModel', {
        extend: 'Ext.data.Model',
        fields: [
          {name: 'check', type: 'bool', convert: null, defaultValue: false},
          {name: 'id', type: 'int', convert: null, defaultValue: undefined},
          {name: 'title', type: 'string', convert: null, defaultValue: undefined},
          {name: 'link', type: 'string', convert: null, defaultValue: undefined},
          {name: 'index', type: 'int', convert: null, defaultValue: undefined}
        ]
      });
      
      Ext.define('MyStore', {
        extend: 'Ext.data.ArrayStore',
        model: 'MyModel',
        data: [
          [false, 1, 'Title', 'link', 5]
        ]
      });
      
      Ext.define('Bookmarks', {
        extend: 'Ext.grid.Panel',
        requires: ['Ext.ux.CheckColumn'],
        store: 'MyStore',
        title: 'Title',
        columns: [
          {text: 'text', dataIndex: 'check', xtype: 'checkcolumn'},
          {text: 'title', xtype: 'templatecolumn', tpl: '{title}<br>{link}'}
        ]  
      });
    
      Ext.create('Ext.container.Viewport', {
        layout: {
          type: 'vbox',
          align: 'stretch'
        },
        items: [Ext.create('Bookmarks')]
      });  
    });
    and get error:
    in Chrome
    1.png

    in Firefox
    2.png

    What am I doing wrong?

  2. Code:
      Ext.define('Bookmarks', {
        extend: 'Ext.grid.Panel',
        store: Ext.create('MyStore'),
        title: 'Title',
        columns: [
          {text: 'title', xtype: 'templatecolumn', tpl: '{title}<br>{link}'}
        ]  
      });