Populating GridPanel with Store (Only lines without data)

  1. #1

    Populating GridPanel with Store (Only lines without data)

    Attached Thumbnails Click image for larger version. 

Name:	no.PNG 
Views:	116 
Size:	3.6 KB 
ID:	4952  
  2. #2
    It looks like you have not set model (columns)

    Try look at
    https://examples2.ext.net/#/GridPanel/ArrayGrid/Simple/

    or at generated javascript by this sample
  3. #3
  4. #4
  5. #5
    But I have to create the ModelField in HTML? Could create a store and set properties and add fields to store the gridPanel? Without the need to create HTML in this store?


    Quote Originally Posted by PetrSnobelt View Post
    It looks like you have not set model (columns)

    Try look at
    https://examples2.ext.net/#/GridPanel/ArrayGrid/Simple/

    or at generated javascript by this sample
  6. #6
    1. ArrayStore expects array of arrays
    data: [["Company1"],["Company2"]]
    http://docs.sencha.com/ext-js/4-1/#!...ata.ArrayStore

    2. GridPanel cannot be defined without store (otherwise a js error will be raised). Need to defined init store for the grid on the server side

    3. To add store to the grid via javascript
    App._grdAcoes.reconfigure(store);
  7. #7
    Vladimir,
    thanks for your help. Really very simple and it worked.

    =D

    Quote Originally Posted by Vladimir View Post
    1. ArrayStore expects array of arrays
    data: [["Company1"],["Company2"]]
    http://docs.sencha.com/ext-js/4-1/#!...ata.ArrayStore

    2. GridPanel cannot be defined without store (otherwise a js error will be raised). Need to defined init store for the grid on the server side

    3. To add store to the grid via javascript
    App._grdAcoes.reconfigure(store);

Similar Threads

  1. [CLOSED] GridPanel Lines
    By state in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Feb 21, 2022, 6:01 PM
  2. Populating ComboBox from Store on page load
    By ikhwanhayat in forum 1.x Help
    Replies: 7
    Last Post: Feb 06, 2012, 3:56 PM
  3. Replies: 5
    Last Post: Jan 04, 2011, 8:09 PM
  4. Replies: 11
    Last Post: Aug 27, 2010, 9:52 PM
  5. [CLOSED] Dynamic Grid not populating data
    By Hari_CSC in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Apr 09, 2010, 3:38 AM

Posting Permissions