user980912
user980912

Reputation: 3

Struts2 jqGrid: How to send column value as parameter in edit scenario

               <sjg:gridColumn 
                name="id" 
                index="id" 
                title="id"
                key="true"
                hidden="true" 
                />
           <sjg:gridColumn 
                name="categoryId" 
                index="categoryId" 
                title="categoryId"
                hidden="true" 
                />

I have following columns in grid, i would like to send "categoryId" as parameter to edit action. Is it possible?

Upvotes: 0

Views: 1422

Answers (1)

Oleg
Oleg

Reputation: 221997

You should add editable: true and hidedlg: true to the properties of the hidden column categoryId. Additionally you should add editrules: { edithidden: false }

Upvotes: 1

Related Questions