1. #1
    Sencha User
    Join Date
    Nov 2012
    Posts
    1
    Vote Rating
    1
    prawin6369 is on a distinguished road

      1  

    Default Unanswered: Extjs 4 create dynamic grid

    Unanswered: Extjs 4 create dynamic grid


    I am creating grid panel in extjs4 with below requirement :
    • Coulmn name and column data should take from json file.
    • Number of column should increase/decrease as per data exist in json.
    I dont want to use any extension /plugin to do this, please suggest any pointer in extjs4.
    Thanks,
    Pravin




    </div>

  2. #2
    Sencha User kevin.chen's Avatar
    Join Date
    Sep 2012
    Location
    Redwood City, CA
    Posts
    242
    Answers
    12
    Vote Rating
    6
    kevin.chen is on a distinguished road

      -1  

    Default


    You can call grid.reconfigure(store, columns[]) method

    if you want to change whole data set in grid, you can pass in another store.
    if you want to change the column, you can pass in a new array of columns definition
    if you want to change both store and column definition, pass in both store and columns

  3. #3
    Sencha User
    Join Date
    Jun 2012
    Posts
    32
    Vote Rating
    14
    plum will become famous soon enough

      0  

    Default


    Look into my code, it is very small addon, and change it to your requirements.

    http://www.sencha.com/forum/showthread.php?242594-Dynamic-grid-with-dynamic-model

  4. #4
    Sencha User
    Join Date
    Jul 2011
    Posts
    17
    Vote Rating
    -1
    Ixtinkt is an unknown quantity at this point

      -1  

    Default


    Quote Originally Posted by kevin.chen View Post
    You can call grid.reconfigure(store, columns[]) method

    if you want to change whole data set in grid, you can pass in another store.
    if you want to change the column, you can pass in a new array of columns definition
    if you want to change both store and column definition, pass in both store and columns
    If you will be so pleasure, please provide you notes with code examples, without abstract words. Because trying to find out right code of your advise costs a lot of time and not every time I got need result.

  5. #5
    Sencha Premium Member
    Join Date
    Apr 2010
    Posts
    33
    Answers
    1
    Vote Rating
    2
    jmcolyer is on a distinguished road

      0  

    Default


    Quote Originally Posted by Ixtinkt View Post
    If you will be so pleasure, please provide you notes with code examples, without abstract words. Because trying to find out right code of your advise costs a lot of time and not every time I got need result.
    See this thread:
    http://www.sencha.com/forum/showthread.php?242052-Changing-grid-columns-dynamically