EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Vladzimir on November 18, 2025, 09:01:15 AM



Title: tagbox in filter datagrid
Post by: Vladzimir on November 18, 2025, 09:01:15 AM
Code:
    $.extend($.fn.datagrid.defaults.filters, {
        tagbox: {
            init: function (container, options) {
                var input = $('<input>').appendTo(container);
                input.tagbox(options);
                return input;
            },
            getValue: function (target) {
                return $(target).tagbox('getValues');
            },
            setValue: function (target, value) {
                if (value) {
                    $(target).tagbox('setValues', value);
                } else {
                    $(target).tagbox('clear');
                }
            },
            resize: function (target, width) {
                $(target).tagbox('resize', width);
            }
        }
    });
Work but in delete tag - error Uncaught TypeError: can't access property "jQuery3310104949804947211292" of undefined