I am using the following as the test of what is returned and what is in the alert box is the function shown.
My error. I was sending more data fields than were defined in the colModel section.
Thanks for your help.
Thanks. I have put it in and am still not seeing the data. If I use the existing data pair like 'records' I get a valid value, but for the new pair the value is 'null'. The value is in the json string.
After looking and trying a few changes, I found the issue in having the sequence of commands in the wrong order.
Sorry to bother you.
That fixed it! Thanks.
Code from Firebug:
2
3
4
5
6
Responce as in Firebug:
|
1 |
{"rows": [{"Cell": ["101", "2010-03-01", "10:19:08-06:00", "10:19:08-06:00"], "id": "1"}, {"Cell": ["101"</code><code>, "2010-03-01", "None", "None"], "id": "2"}, {"Cell": ["102", "2010-03-04", "14:32:12-06:00", "14:32</code><code>:12-06:00"], "id": "3"}, {"Cell": ["102", "2010-03-10", "12:53:00-06:00", "22:24:00-06:00"], "id": "4"</code><code>}]}<br /><br /></code><a href="http://www.prosoftplus.com:8088/emp_gd" rel="nofollow">http://www.prosoftplus.com:8088/emp_gd</a><br /><br />Thanks for your help. |
Tony,
Thanks for your reply. I made the change and that did not help. If I set repeatItems: false, there is no error and no data in the grid. This is correct behavior.If I set to true then there is the error. This tells me that the issue is, I think, in json reader translating the data string.
Can you see anything in the data string that is wrong?
Returned data string:
tony said:
Hello,
There are quite good examples in the demo pages.
Best Regards
Tony
I have looked at the gridtoform and am just not getting it to work. I cannot find a good working example.
I have jQuery(“#list”).jqGrid('GridToForm', 'id', 'list1' );
id = the id of the data record and 'list1' is the name of the form (<form id="list1" class="formular" method="post" action=""
I found the function 'gridToForm' and this looks like what I am looking for.
1. Can anyone point to a sample of the code, HTML page using this? It would really help to see a full implimentation to get a overall view of how everything works together.
2. It soulds like when the form is called with GridToForm ane the user submits back out of the form, the code returns to the jgrid anee will see the reload function. Is this correct?
Thanks.
I got it to work.
Needed separate class to send data.
andrewwatts said:
Post edited 08:01 – 19/11/2009 by andrewwatts
Post edited 08:03 – 19/11/2009 by andrewwatts
Post edited 08:04 – 19/11/2009 by andrewwatts
Hello Ed, we spoke in the TG forum about this issue and I just stumbled on your posts here.
Now that I've seen your code I can say a bit more and I believe you need to go back and double check all your script and css paths.

Thanks to all of you that have helped with this! It is finally working! Hallelujah!!
How are you returning the html page the first time and just the data after that? Have you split into two methods, one with @expose (url page name) and the second with @expose(“json”)?
notnow said:
As far as I can tell, the controller, html, and scripts from your first post looks about the same as my application.
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top