1. #1
    Sencha User
    Join Date
    Jul 2012
    Location
    India
    Posts
    87
    Vote Rating
    0
    Ronits is on a distinguished road

      0  

    Default Unanswered: ExtJS Grid on refresh

    Unanswered: ExtJS Grid on refresh


    Hi,
    I am facing a typical problem related to thousands separator formatting in grid.
    I do not have any formatter placed in ExtJS grid column renderer , neither I am formatting it in Java layer.
    However, in one scenario, when I am creating the grid using Ext.create(), upon debug, I found that when extjs internally calls the refresh() , it appends a thousand separator to one of the columns.
    I have no clue as to from where it is getting the instruction to add the thousands separator. Please help.

    PFB the images:
    Screen Shot 2014-01-17 at 11.59.57 AM.jpgScreen Shot 2014-01-17 at 12.00.27 PM.jpg
    Thanks,
    Ronz

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,636
    Answers
    613
    Vote Rating
    400
    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


    Can you duplicate this using this example:

    You can paste the code in our fiddle:
    https://fiddle.sencha.com/#home

    Code:
    Ext.onReady(function () {
    
        Ext.create('Ext.data.Store', {
            storeId : 'simpsonsStore',
            fields  : ['name', 'email', 'change'],
            data    : {'items' : [
                { 'name' : 'Lisa', 'email'  : 'lisa@simpsons.com',  'change' : 2100 },
                { 'name' : 'Bart', 'email'  : 'bart@simpsons.com',  'change' : 1000 },
                { 'name' : 'Homer', 'email' : 'homer@simpsons.com', 'change' : 2350 },
                { 'name' : 'Marge', 'email' : 'marge@simpsons.com', 'change' : 1100 }
            ]},
            proxy   : {
                type   : 'memory',
                reader : {
                    type : 'json',
                    root : 'items'
                }
            }
        });
    
        Ext.create('Ext.grid.Panel', {
            title    : 'Simpsons',
            store    : Ext.data.StoreManager.lookup('simpsonsStore'),
            selModel : {
                selType: 'cellmodel'
            },
            columns  : [
                { header : 'Name', dataIndex : 'name' },
                { header : 'Email', dataIndex : 'email' },
                { header : 'Change', dataIndex : 'change' }
            ],
            height   : 200,
            width    : 400,
            renderTo : Ext.getBody()
    
        });
    
    });

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar