1. #1
    Sencha User
    Join Date
    Dec 2012
    Vote Rating
    andresdavidortiz is on a distinguished road


    Default Dynamic Store fields and grid column don't bind

    Good Morning

    I'm trying to load information dynamically from various service Json, 2 Json request and another through a defined store. Actually I already I have defined my store.

    Ext.require ('Ext.data.proxy.JsonP');

    Ext.define ('VWD.store.datos', {
    extend: 'Ext.data.Store',
    pageSize: 5,
    proxy: {
    type: 'jsonp',
    url: 'myurl'
    reader: {
    type: 'json',
    root: 'data',
    totalProperty: 'total'
    autoLoad: {start: 0, limit: 5}

    and also in my grid columns are dynamically loaded, I have not assigned the fields to the store or and the store to the grid because I do this uploading them via respective web service, that is to say, I have a routine to assign the store fields dynamically and create grid columns also and the bind the grid to the store, reviewing information on the console the data is retrieved but grid loads a blank information as if they bring the records but it's not binded and can not display them. Any suggestions?

  2. #2
    Sencha Premium Member vadimv's Avatar
    Join Date
    Sep 2010
    Cluj, Romania
    Vote Rating
    vadimv has a spectacular aura about vadimv has a spectacular aura about vadimv has a spectacular aura about



    1. Post code in code tags
    2. Post all related code, easier for community to help you then reading a big messed up phrase
    3. Best practices recommends to name classes with first and last namespace with first letter uppercase. In your case would be: VWD.store.Datoms
    4. You bind the store to grid , not opposite.
    Github https://github.com/vadimpopa
    Sencha tips and articles : http://vadimpopa.com
    Twitter: @vadimvpopa

Thread Participants: 1