Results 1 to 3 of 3

Thread: Change grid store and dataIndex dynamically: grid reconfigure method.

  1. #1
    Sencha Premium User
    Join Date
    Jul 2014
    Posts
    269
    Answers
    15

    Default Answered: Change grid store and dataIndex dynamically: grid reconfigure method.

    I have an app with a tree that is used as a menu and a grid that load different data, depending on the selected item from the tree.

    Each time the tree itemclick event is fired, i need to change the grid store, the dataindex and the column name.

    I'm trying to do it with the reconfigure method, but without success.

    I would appreciate some guidance.

    Thanks in advance.


  2. Hi josei--

    The 2nd argument of reconfigure(), if used, needs to be an array of column configs:

    http://docs.sencha.com/extjs/5.1/5.1...od-reconfigure

    Thanks!
    Joel

  3. #2
    Sencha User joel.watson's Avatar
    Join Date
    Nov 2014
    Posts
    3,120
    Answers
    446

    Default

    Hi josei--

    The 2nd argument of reconfigure(), if used, needs to be an array of column configs:

    http://docs.sencha.com/extjs/5.1/5.1...od-reconfigure

    Thanks!
    Joel

  4. #3
    Sencha Premium User
    Join Date
    Jul 2014
    Posts
    269
    Answers
    15

    Default

    Thanks Joel.
    I updated my fiddle.

Similar Threads

  1. ExtJs 4.0 dynamically change store for grid
    By Ixtinkt in forum Ext: Discussion
    Replies: 1
    Last Post: 21 Feb 2013, 5:06 AM
  2. Change the value of 'dataIndex' for selected values in an editable grid
    By shanika in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 31 Mar 2010, 8:25 PM
  3. Change grid header and store dataindex
    By JNason in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 28 Oct 2008, 12:55 PM
  4. Grid reconfigure method
    By jeffiel in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 27 Mar 2007, 9:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •