笔记-工作-TBM:TBM.Ctrl.js

ylbtech-笔记-工作-TBM:TBM.Ctrl.js
1.返回顶部
1、
            //添加清空按钮事件
            jQuery('#' + this.id + '_clear').bind('click', function () {
                this.ClearData();
            }.bind(this));
2、
        //清空
        ClearData: function () {
            if (this.value) {//当原来有值时才触发相关改变事件
                if (!this.onChanging(this.value, null)) return;

                if (this.helptype == "grid" && this.multiselect) {
                    this.isFire = false;
                    this.helpCtrl.ctrl.datagrid('clearChecked');
                    jQuery('#' + this.selGridID).datagrid('uncheckAll');
                    this.isFire = true;

                    jQuery('#' + this.selGridID).datagrid('loadData', { total: 0, rows: [] });//清空下列表数据
                }
                this.value = null;
                this.ctrl[0].value = "";
                jQuery(this.ctrl).tooltip('destroy');

                this.onChange();
                this.onChanged(null);
            }

            this.helpWin.window('close');
        },
3、
2.返回顶部
 
3.返回顶部
 
4.返回顶部
 
5.返回顶部
 
 
6.返回顶部
 
warn 作者:ylbtech
出处:http://ylbtech.cnblogs.com/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。

猜你喜欢

转载自www.cnblogs.com/storebook/p/12423844.html