Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: I Wrote a TagField Component for Modern

  1. #11
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,890
    Answers
    41

    Default

    They claimed Ross's TimePanel from last summer as their own innovation in 6.6, so you did get something. Oh, and Mitch's Router improvements also from last summer. "We've been hard at work"...

    Grid filtering is 95% there, so needs a good core developer to finish off that last 5%.

    So... not sure if you'll ever see it. Sorry about that.

  2. #12
    Sencha User
    Join Date
    Sep 2018
    Posts
    6

    Default

    Quote Originally Posted by lovelyhibabe View Post
    I posted an issue, but the author didn't modify the code.
    Add the code below to TagField:
    Code:
        applyStore: function(store) {
            if (store) {
                store = Ext.data.StoreManager.lookup(store);
            }
    
    
            return store;
        },
    
    
        updateStore: function(store, oldStore) {
            //var me = this;
    
    
            if (oldStore) {
                if (oldStore.getAutoDestroy()) {
                    oldStore.destroy();
                }
            }
        },

    I added this code but the store is not shown when I binded the value and when I used a static store, yes it's is shows the values but not made any binding, I´m using Modern toolkit 6.5.2 Triton

  3. #13
    Sencha User
    Join Date
    Apr 2013
    Posts
    45
    Answers
    1

    Default

    Because Bind delay load data, add one more line to fix bug
    Code:
    applyStore: function(store) {         if (store) {
                store = Ext.data.StoreManager.lookup(store);
                this.getPicker().setStore(store);//Add this line
            }
    
    
            return store;
        },
    
    
        updateStore: function(store, oldStore) {
            //var me = this;
    
    
            if (oldStore) {
                if (oldStore.getAutoDestroy()) {
                    oldStore.destroy();
                }
            }
        },

  4. #14
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,890
    Answers
    41

    Default

    Binding delays add a whole layer of complexity. Not just setting the store to the picker.

    What if the value was set to some ID early, before the store has been bound? On store arrival, that ID must be then found in the store, and the correct record selected (likely, the ViewController logic will be interested in the underlying record, not just the value), and the valueField displayed in the UI.

    We had to go though all this.

  5. #15
    Sencha User
    Join Date
    Apr 2013
    Posts
    45
    Answers
    1

    Default

    Quote Originally Posted by Animal View Post
    Binding delays add a whole layer of complexity. Not just setting the store to the picker.

    What if the value was set to some ID early, before the store has been bound? On store arrival, that ID must be then found in the store, and the correct record selected (likely, the ViewController logic will be interested in the underlying record, not just the value), and the valueField displayed in the UI.

    We had to go though all this.
    You are right, so can I have sample code for better solution define wait Binding delay.

  6. #16
    Sencha Premium User
    Join Date
    Jun 2017
    Posts
    17

    Default

    This is not in the 6.6 version of Modern ExtJS. Will it be rolled out in 6.7?

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Tagfield in modern toolkit
    By steenole in forum Ext JS 6.x Q&A
    Replies: 5
    Last Post: 15 Jul 2018, 12:26 AM
  2. How to use tagfield in modern app ?
    By sahiltanta in forum Ext JS 6.x Q&A
    Replies: 1
    Last Post: 4 Aug 2016, 7:07 AM
  3. Add All option to tagfield component
    By gpradeepjain in forum Ext JS 6.x Q&A
    Replies: 1
    Last Post: 6 Jul 2016, 1:36 PM
  4. [FIXED] Issue in tagfield component in EXT 5.1
    By GNainar in forum Ext 5: Bugs
    Replies: 1
    Last Post: 3 Feb 2015, 9:09 PM
  5. Issue in tagfield component in EXT 5.1
    By GNainar in forum Ext 5: Q&A
    Replies: 0
    Last Post: 2 Feb 2015, 12:33 AM

Tags for this Thread

Posting Permissions

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