Hybrid View

  1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    22
    Answers
    2
    Vote Rating
    0
    Ibrahimp is on a distinguished road

      0  

    Default Unanswered: facing an error when using the 'checkcolumn' inside 'Ext.grid.Panel'

    Unanswered: facing an error when using the 'checkcolumn' inside 'Ext.grid.Panel'


    Hi,

    I facing an error when using the 'checkcolumn' inside columns :

    var myGridPanel = Ext.create('Ext.grid.Panel', {
    title: 'Permissions',
    cm: selModel,
    store: Ext.data.StoreManager.lookup('userStore'),
    columns: [
    { header: 'Name', dataIndex: 'name' },
    { header: 'Read', dataIndex: 'read' },
    { header: 'Write', dataIndex: 'write' },
    {
    xtype: 'checkcolumn',
    header: 'write',
    dataIndex: 'readwrite',
    width: 60,
    editor: {
    xtype: 'checkbox'
    }
    }


    ],
    height: 200,
    width: 400,
    renderTo: Ext.getBody()
    });

    error in ext-all.js -
    Microsoft JScript runtime error: Unable to get value of the property 'substring': object is null or undefined.

    The store is defined as follows -

    Ext.create('Ext.data.Store', {
    storeId: 'userStore',
    fields: [
    { name: 'name', type: 'string' },
    { name: 'Read', type: 'bool' },
    { name: 'Write', type: 'bool' },
    { name: 'readwrite', type: 'bool' }
    ],
    data: { 'items': [
    { 'name': 'Lisa', "Read": "true", "Write": "true", "readwrite": "true" },
    { 'name': 'Bart', "Read": "true", "Write": "true", "readwrite": "true" },
    { 'name': 'Homer', "Read": "true", "Write": "true", "readwrite": "true" },
    { 'name': 'Marge', "Read": "true", "Write": "true", "readwrite": "true" }
    ]
    },
    proxy: {
    type: 'memory',
    reader: {
    type: 'json',
    root: 'items'
    }
    }
    });


    Please help.

    Thanks.


    P.S - using <script src="extjs-4.1.0/ext-all.js" type="text/javascript"></script> .js library.

  2. #2
    Touch Premium Member
    Join Date
    Feb 2011
    Location
    NJ
    Posts
    311
    Answers
    59
    Vote Rating
    52
    droessner is a jewel in the rough droessner is a jewel in the rough droessner is a jewel in the rough

      0  

    Default


    CheckColumn is a plugin. You have to load this plugin before using it.

  3. #3
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,910
    Answers
    655
    Vote Rating
    443
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    As mentioned, this is a UX and has to be loaded prior to use:
    Ext.require(['Ext.ux.CheckColumn']); // or included in your uses (html)

    Scott.

  4. #4
    Sencha User
    Join Date
    Jul 2012
    Posts
    22
    Answers
    2
    Vote Rating
    0
    Ibrahimp is on a distinguished road

      0  

    Default loading didn't work for me.

    loading didn't work for me.


    Thanks for your prompt reply.

    but even after loading it doesn't work for me.

    Ext.Loader.setConfig({
    enabled: true,
    paths: {
    'Ext.ux': '../extjs-4.1.0/examples/ux'
    }
    });
    Ext.require(['Ext.ux.CheckColumn']);


    what else is missing?

    Thanks,
    Ib

  5. #5
    Sencha User
    Join Date
    Jul 2012
    Posts
    22
    Answers
    2
    Vote Rating
    0
    Ibrahimp is on a distinguished road

      0  

    Default


    resolved it by including-

    <script src="extjs-4.1.0/examples/ux/CheckColumn.js" type="text/javascript"></script>

    Thanks.

Thread Participants: 2

Tags for this Thread

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..."