Open GoogleCodeExporter opened 9 years ago
Works fine for me if I try it out in the Showcase Grid (Editable) example.
When I set the attribute prmNames like your example "{id: 'ordernumber'}" I got
following request when i try to edit or delete this entry.
Delete:
http://localhost:8080/struts2-jquery-showcase/edit-grid-entry.action?oper=del&or
dernumber=348
Edit:
http://localhost:8080/struts2-jquery-showcase/edit-grid-entry.action?city=Corkx&
country=France&creditLimit=0.00&name=Asian%20Treasures%2C%20Inc.&oper=edit&order
number=348
Original comment by johgep
on 27 Jun 2011 at 2:37
Johgep,
I am navigating from Main grid to subgrid. I like to change the subgrid url
paramname from id to ordernumber.
Thanks,
Original comment by mamo...@gmail.com
on 6 Jul 2011 at 2:29
[deleted comment]
Johgep
I am having the same problem. I want to change the id in the subgrid to
playername. Here is my sample.
<sjg:grid id="gridtable"
caption="Player Examples" loadonce="true" dataType="json"
href="%{remoteurl}" pager="true" gridModel="gridModel">
<sjg:grid id="subgrid" caption="Games played" loadonce="true" prmNames="{id: playername'}" dataType="json" href="%{Sub_remoteurl}" gridModel="gridModel" >
<sjg:gridColumn name="winner" title="winner" /> <sjg:gridColumn name="looser" index="looser" title="looser" /> <sjg:gridColumn name="win_score" index="win_score" title="win_score" /> <sjg:gridColumn name="looser_score" index="looser_score" title="looser_score" />
</sjg:grid>
<sjg:gridColumn name="testCol" formatter="formatLink" title=""
/> <sjg:gridColumn name="name" index="name" title="Name"
key="true"/> <sjg:gridColumn name="email" index="email" title="Email" key=
"true"/>
</sjg:grid>
I have getter and setters for the playername in the action class..but it is
always null.
Is there a way i can send more parameters..like I want to send name and email
from the parent grid to my subgrid?
Original comment by niharika...@gmail.com
on 10 Apr 2012 at 8:08
Original issue reported on code.google.com by
mamo...@gmail.com
on 23 Jun 2011 at 3:00