Issue 1128 in struts2-jquery: Change SubGridUrl Action onSubGridRowExpanded of parent grid

35 views
Skip to first unread message

struts2...@googlecode.com

unread,
Jan 20, 2015, 9:57:51 AM1/20/15
to struts2...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 1128 by laura.qu...@gmail.com: Change SubGridUrl Action
onSubGridRowExpanded of parent grid
https://code.google.com/p/struts2-jquery/issues/detail?id=1128

(This is for feature requests and bugs in Struts2 jQuery Plugin - for
getting help, please use the User Group.
http://groups.google.com/group/struts2-jquery )

What steps will reproduce the problem?
1. I have grid parent and one as subgrid
2. When I open the subgrid onSubGridRowExpanded of grid parent i need to
pass one more parameter at the action
3. how do it?

this code example:


<sjg:grid id="gridtable"
dataType="json"
href="%{remoteUrl}" onSubGridRowExpanded="rowExpandedFn"
gridModel="gridModel"
key="id" autowidth="true" rownumbers="true">

<sjg:grid id="subGrid" dataType="json"
subGridUrl="%{remoteUrlSubGrid}"
gridModel="gridModelSubGrid"
rownumbers="true">
[...]
<script>
$(function() {
$.subscribe('selezionaRiga', function(event, data) {
event.originalEvent.proceed= true;
var additionalparam = $("#additionalparam").val();
$("#subGrid").jqGrid(
'setGridParam',
{
url : 'myaction.action?id=9999999'
+ '&param1=' + additionalparam
}).trigger("reloadGrid");
});
});

but url of action doesn't have param1
...\myAction.action?id=1389&&_search=false&nd=1421765261678&rows=20&page=1&sidx=&sord=asc&_=1421765261678
What is the expected output? What do you see instead?
...\myAction.action?id=1389&param1=true&_search=false&nd=1421765261678&rows=20&page=1&sidx=&sord=asc&_=1421765261678

Which struts2 version?
struts2-jquery-plugin-3.5.1.jar

Which struts2-jquery plugin version?
struts2-jquery-grid-plugin-3.5.1.jar


Please provide any additional information below.


--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

struts2...@googlecode.com

unread,
Jan 20, 2015, 9:59:21 AM1/20/15
to struts2...@googlegroups.com

Comment #1 on issue 1128 by laura.qu...@gmail.com: Change SubGridUrl Action
sorry selezionaRiga => rowExpandedFn
Reply all
Reply to author
Forward
0 new messages