How to add a simple text label in a jqGrid form?

前端 未结 1 952
没有蜡笔的小新
没有蜡笔的小新 2021-01-14 04:24

When using the Add or Edit form from the pager I\'m wondering how a simple static label can be added in the form without it creating any additional columns in it\'s affect o

1条回答
  •  终归单人心
    2021-01-14 05:05

    You can modify Edit or Add forms inside of afterShowForm. The ids of the form fields are like "tr_Name". There consist from "tr_" prefix and the corresponding column name.

    I modified the code example from my old answer so that in the Add dialod there exist an additional line with the bold text "Additional Information:". In the "Edit" dialog (like one want in the original question) the input field for one column is disabled. You can see the example live here. I hope that a working code example can say more as a lot of words.

    0 讨论(0)
提交回复
热议问题