找回密码
 立即注册

QQ登录

只需一步,快速开始

fireball

注册会员

2

主题

6

帖子

20

积分

注册会员

积分
20
最新发帖
fireball
注册会员   /  发表于:2018-11-3 10:37  /   查看:2870  /  回复:3
请问,如何设定FlexGrid的栏位输入型态为Password!?

3 个回复

倒序浏览
JeffryLI
葡萄城公司职员   /  发表于:2018-11-5 09:22:43
沙发
这个直接使用模板列或者或者自定义单元格来实现,具体,请参考http://demo.grapecity.com.cn/wijmo5/learningwijmo/#xLYKp(模板列)
http://demo.grapecity.com.cn/wijmo5/learningwijmo/#GLYKp(自定义单元格)
请点击评分,对我5分评价,谢谢!

葡萄城控件服务团队
官方网站: https://www.grapecity.com.cn/developer
回复 使用道具 举报
fireball
注册会员   /  发表于:2018-11-5 11:36:41
板凳
formatitem: function (sender,e){
                   var theTemplatea = '<input type="password" >';
                   if (e.panel == sender.cells && sender.columns[e.col].binding == 'pws') {
          var item = sender.rows[e.row].dataItem,
          html = wijmo.format(theTemplatea, item);
          e.cell.innerHTML = html;
         
      }
           }

我增加了一個輸入模版
但是輸入時輸入框被遮住了,輸入完才能顯示輸入值
有什麼參數需要設定嗎!?
回复 使用道具 举报
JeffryLI
葡萄城公司职员   /  发表于:2018-11-5 17:00:30
地板
可以提供一个可以重新问题的demo吗?
请点击评分,对我5分评价,谢谢!

葡萄城控件服务团队
官方网站: https://www.grapecity.com.cn/developer
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部