Results 1 to 2 of 2

Thread: CellEditing Uncaught Error: Only infinite lists support sticky items

  1. #1
    Sencha Premium User
    Join Date
    Sep 2013
    Posts
    6

    Default CellEditing Uncaught Error: Only infinite lists support sticky items

    Hi Colleagues,

    when I have grid with "infinite: false," and cellEditing plugin I got "Uncaught Error: Only infinite lists support sticky items" when I edit item. Is this a bug or I need to do something. I try to search for sticky items but couldn't find anything in documentation.

    JS Fiddle Example:
    https://fiddle.sencha.com/#view/editor&fiddle/26ba

  2. #2

    Default

    Hi,

    Experienced the same problem today. To resolve it I did an override of Ext.dataview.List as follows:

    Code:
    override: 'Ext.dataview.List',
    
        privates: {
            stickItem: function (item, options) {
                var me = this,
                    opt = item.$sticky,
                    record = item.getRecord(),
                    stickyCls = me.stickyCls,
                    stickyItems = me.stickyItems,
                    stickyItemsByRecordId = me.stickyItemsByRecordId,
                    stickyPos;
    
    
                //<debug>
                if (!me.infinite) {
                    return;
                }
                //</debug>
    
    
                if (options) {
                    if (!opt) {
                        stickyItems.push(item);
                        stickyItemsByRecordId[record.internalId] = item;
    
    
                        item.addCls(stickyCls);
    
    
                        item.$sticky = opt = {
                            pos: item.$position
                        };
                    }
    
    
                    Ext.apply(opt, options);
    
    
                    stickyPos = me.constrainStickyItem(item);
    
    
                    if (stickyPos !== null) {
                        me.setItemPosition(item, stickyPos);
                    }
                }
                else if (opt) {
                    Ext.Array.remove(stickyItems, item);
                    delete stickyItemsByRecordId[record.internalId];
    
    
                    item.removeCls(stickyCls);
                    item.$sticky = null;
    
    
                    if (opt.autoPin && item.isDataViewPinnable) {
                        item.setPinned(false);
                    }
    
    
                    if (opt.floated) {
                        delete item.$position;
                    }
    
    
                    if (opt.dislodged) {
                        me.removeDataItem(item);
                    }
                    else {
                        // If the item is still in dataItems, then just make sure it is
                        // positioned correctly.
                        me.setItemPosition(item, opt.pos);
                    }
                }
            }
        }
    Instead of throwing an error, a simple return. Works fine with 6.7.0 Modern.

    Cheers

    PS: Come on guys, this WYSIWYG editor in 2019? It took me more time adjusting this message than debugging the issue...

Similar Threads

  1. WP8 Lists Issue - Cannot Scroll (Sticky Lists)
    By avivais in forum Sencha Touch 2.x: Q&A
    Replies: 3
    Last Post: 15 Apr 2014, 2:23 AM
  2. Replies: 1
    Last Post: 12 Oct 2013, 5:03 AM
  3. Replies: 1
    Last Post: 10 Oct 2013, 1:51 AM
  4. List item height not adapting on infinite lists on 2.2?
    By hessius in forum Sencha Touch 2.x: Q&A
    Replies: 3
    Last Post: 23 Apr 2013, 10:02 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
  •