易创云论坛

 找回密码
 立即注册
查看: 3059|回复: 0

jqgrid 让隐藏的列在编辑状态时出现且可编辑

[复制链接]

170

主题

178

帖子

10万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
100700
发表于 2022-3-30 18:30:04 | 显示全部楼层 |阅读模式
有时,我们需要隐藏一个列数据,但在启动编辑时又能够被编辑。
1、设置列为编辑:editable: true
2、设置 editrules属性值为: edithidden: true

  1. colModel: [{
  2.                       label: '筛选说明',
  3.                       name: 'Remark',
  4.                       width: 120,
  5.                       editable: true,
  6.                       edittype: "textarea",
  7.                       //edittype: "text",
  8.                       hidden: true,//隐藏字段
  9.                       editrules: { edithidden: true }//让隐藏字段可编辑,编辑时显示
  10.                   }]
复制代码
https://www.cnblogs.com/senyier/p/7308094.html
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|易创云论坛 ( 吉ICP备17001024号-1 )

GMT+8, 2025-2-1 22:49 , Processed in 0.495514 second(s), 19 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表