I guess the problem is your jqGrid instance does not know where it can find the records in your result.
|
1 |
$("#list1").jqGrid({ |
Hi Tony,
you are right. Here the environment:
jQuery: 1.5.1
jqGrid: 3.8.2
jQuery UI: 1.8.9
Browser: firefox 3.6.x
So far I see it does not happens in IE8. On the jqGrid Demo Site it works nice with firefox.
Johannes
problem is solved, the error is not located in the jqGrid sources.
it was a wrong call of a jqGrid function.
Thank you for supporting me.
Best Regards
Johannes Geppert
yes this produce a lot of errors because this is the ajax result in the showcase without the header.
But in the source code you can see the javascript options object that is given to jqGrid.
currently the non minfied version is not part of the plugin so i must make some changes
in the struts2 jquery grid plugin. I will inform you when the version with non minfied jqgrid
is available.
Best Regards
Johannes
currently you can only enable this with plain javascript.
paste this fragment after your
|
1 2 |
<div class="sfcode"><br /><br /> <pre id="line23">$(document).ready(function () {<br /> |
$("#yourGridId").jqGrid('searchGrid', {multipleSearch:true} );
});
I will implement an better way in one of the next versions.
Best Regards
Johannes Geppert
you can see the generated output when you take a look at the sourcecode of this showcase example.
http://www.weinfreund.de/struts2-jquery-showcase/grid-edit.action
thi is the action that is loaded via ajax.
with the generated options object the javascript above will work and
call with this your jqgrid plugin.
Best Regards
Johannes Geppert
Hello Tony,
thank you for the answer. The struts2 code that runs the jqgrid feature can you see here:
But currently I don't have an idea why the struts2 jquery code can be the problem,
because it works in other browsers and the struts2 jquery plugin is only a wrapper for the
jqgrid options.
Best Regards
Johannes Geppert
Other Formatters like Link, Date, Integer working. Is showlink in an differnt modul?
Best Regards
Johannes Geppert


in your json result you must return an array userdata.
$responce->userdata['pie'] = $piesum;
json_encode($responce);
It does not render a link. When i use a custom formatter I can render a Link,
also when I use the link formatter.
But when I use the showlink formatter I got only a cell with value but it is not
rendered as Link.
I try it with various combinations of formatoptions but no way.
Are there any dependencies to use this formatter?
Thanks for your help
Johannes
A good way to find out what jqGrid sends to the Server is to use Firbug or similar tools.
Choose Network -> XHR and try to delete your Grid Entry.
In the Post Tab of your Request you can see the paramters.
I sugegst that the ID always has the Name id and not id_auditorio.
Hope it helps
Johanens Geppert
I try it like your suggestion with this
|
1 |
formatoptions = { baseLinkUrl : '/jquery-grid/grid.action', target : '_new' }; |
But without Success. Are there any prerequistes for showlink formatter?
I have read your Example, why there is set the formatter to “select”instead of “showlink” in the Wiki?
To your first Question:
Create an Simple Struts2 Action like this:
public class CustomerCountrys extends ActionSupport {
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top