`
standalone
  • 浏览: 598009 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

How to make extjs grid selectable

阅读更多
Ext.core.Element.prototype.unselectable = function() {
            var me = this;
            if (me.dom.className.match(/(x-grid-table|x-grid-view)/)) {
                return me;
            }
            me.dom.unselectable = "on";
            me.swallowEvent("selectstart", true);
            me.applyStyles("-moz-user-select:none;-khtml-user-select:none;");
            me.addCls(Ext.baseCSSPrefix + 'unselectable');
            return me;
        };



I copied the code from http://kevin.chibaole.com/135
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics