Has really noone a solution for it?
A Workarround is also ok.
Many thanks
DJ
tony thanks a lot.
CDATA was the solution. 🙂
Hi,
I check the dta and there is no ' or “.
I use PHP, how can i use CDATA there?
Many thanks
DJ
Hi,
I try to use 2 times subGridRowExpanded or
...
subGridRowExpanded: function(subgrid_id, row_id) { var subgrid_table_id, pager_id; subgrid_table_id = subgrid_id+"_t"; pager_id = "p_"+subgrid_table_id; $("#"+subgrid_id).html("
“); jQuery(“#”+subgrid_table_id).jqGrid({ url:”subgrid.php?q=2&id=”+row_id, datatype: “xml”, colNames: ['No','Item','Qty','Unit','Line Total'], colModel: [ {name:”num”,index:”num”,width:80,key:true}, {name:”item”,index:”item”,width:130}, {name:”qty”,index:”qty”,width:70,align:”right”}, {name:”unit”,index:”unit”,width:70,align:”right”}, {name:”total”,index:”total”,width:70,align:”right”,sortable:false} ], rowNum:20, pager: pager_id, sortname: 'num', sortorder: “asc”, height: '100%' }); jQuery(“#”+subgrid_table_id).jqGrid('navGrid',”#”+pager_id,{edit:false,add:false,del:false}) },
subGridRowExpanded: function(subgrid_id, row_id) { var subgrid_table_id, pager_id; subgrid_table_id = subgrid_id+"_t"; pager_id = "p_"+subgrid_table_id; $("#"+subgrid_id).html("
“); jQuery(“#”+subgrid_table_id).jqGrid({ url:”subgrid.php?q=2&id=”+row_id, datatype: “xml”, colNames: ['No','Item','Qty','Unit','Line Total'], colModel: [ {name:”num”,index:”num”,width:80,key:true}, {name:”item”,index:”item”,width:130}, {name:”qty”,index:”qty”,width:70,align:”right”}, {name:”unit”,index:”unit”,width:70,align:”right”}, {name:”total”,index:”total”,width:70,align:”right”,sortable:false} ], rowNum:20, pager: pager_id, sortname: 'num', sortorder: “asc”, height: '100%' }); jQuery(“#”+subgrid_table_id).jqGrid('navGrid',”#”+pager_id,{edit:false,add:false,del:false}) }…
But it do not work.
Where is the mistake?
Many thanks
DJ
You mean I can add this event, in my case, two times?
Many thanks
DJ
Great thank you.
Best Reagrds
DJ
Hi,
I have the same issue. It seem, that the editurl for edit do not work.
It would be great if someone could help.
Best regards,
DJ
Hi,
to hide and show column you can use a click event
to Hide a column you can use e.g. this
jQuery(“#button”).click( function() { jQuery(“#list”).jqGrid('navGrid','hideCol',”column”); });
to show a column you can use e.g. this
jQuery(“#button“).click( function() { jQuery(“#list”).jqGrid('navGrid','showCol',”column“); });
I hope it helps you.
Best Regards,
DJ
Hi,
I solved the problem.
It is only possible to make subgrid with xml json do not work 🙁
Best Regards,
DJ
Hello,
can not help anyone?
It is important for me.
Best Regards,
DJ
Hi,
I find out that my params
subGridModel :[{params : ['Field1']}]
which should send the params to the php site has not the value.
So my Question is now:
How I must configure the subgrid, that I got my value to the php script.
Best Regards,
DJ
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top