但在对话框中显示了Struts2

但在对话框中显示了Struts2

本文介绍了尽管在对话框中使用hidedlg ="true",但在对话框中显示了Struts2 jquery网格gridColumn字段.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<sjg:gridColumn
    name="progressivo"
    index="progressivo"
    title="ID"
    sortable="false"
    formatter="integer"
    width="40"
    displayTitle="false"
    editable="true"
    hidedlg="true"
    editrules="{edithidden:false}"/>

我不想编辑该字段,我不想在编辑对话框中显示它,但是我想将其传递给操作.我的理解是,我应该使用上面指定的editable ="true",hidedlg ="true",editrules ="{edithidden:false}".但是该字段在对话框中仍然可见并且可以编辑...任何人都知道这段代码有什么问题吗?谢谢

I do NOT want to be able to edit the field, I do NOT want to show it in the edit Dialog, but I want to pass it to the action. My understanding is that I should use editable="true", hidedlg="true", editrules="{edithidden:false}" as specified above. But the field is still visible and editable in the dialog... anyone knows what is wrong with this code? thanks

推荐答案

我在<sjg:gridColumn ...>的属性列表中没有看到hidden="true".此外,您使用editrules="{edithidden:false}"而不是editrules="{edithidden:true }".可能是问题所在.

I don't see hidden="true" in the list of attributes of <sjg:gridColumn ...>. Moreover you use editrules="{edithidden:false}" instead of editrules="{edithidden:true }". Probably it's the problem.

换句话说,您需要具有列属性

In other words you need to have the column properties

hidden: true, editable: true, editrules: { edithidden: true }, hidedlg: true

例如,答案中进行了描述.

described in the answer for example.

这篇关于尽管在对话框中使用hidedlg ="true",但在对话框中显示了Struts2 jquery网格gridColumn字段.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 02:56