After doing some debugging it looks to be a problem with IE not reporting the current page correctly. I changed the line as follows and it seems to work.
I replaced the parseInt with the Math.Round function and it rounds up to the next whole number instead of going down a whole number like the parseInt function does.(ex. if number is .99 the parseInt function will make it 0)
Starting at Line 272 in the “grid.base.js”
Thanks for the help Tony!
just an fyi, I was looking at this page for documentation..
http://www.trirand.com/jqgridwiki/doku.php?id=wiki:treegrid
And in the description for the parameter “direction” for the SortTree method
Thanks a lot tony!
I didnt know the existence of this wonderfull wiki-article. just tried out your example-pages…
The concrete solution for my problem described above gives the following line:
cellsubmit: 'clientArray'
Regards, cimodev
Ok, so I can replace a datasource, but can't seem to append.
it seems, that the error message “no url isset” in every case occurs, even if i define the editurl-property.
the used version of jqgrid is the 3.5 3.5 beta (buld6- build11)
You can change your current datasource, but I'm not sure if you can add several datasources. To change the datasource, you could do the following:
$('#grid').setGridParam({url:'http://localhost:8888/xxx/abc?active=true'});
$('#grid').trigger(”reloadGrid”);
Ah yes, I managed to solve it on server side. I should have thought of this myself.
But it's strange, I thought jqgrid solved this problem by itself, because when you do regular paging and you go from a lower pagesize to a higher pagesize (for example, change pagesize 10 to 30), then jqgrid does solve it by itself: if the current page is greater than the pagesize, the current page gets edited.
Anyway, thanks a lot for your help Tony!
check your HTTP headers and see if there's an expiry date associated with the URL your data comes from. Normally this only happens with js or image files, but webservers can be configured to output a header with an expiry date for any url extension treating a service as though it were a file. ie with my webserver I can confgure it so that any url ending in .json will output an expiry date for that component.
http://yuiblog.com/blog/2007/01/04/performance-research-part-2/
When the browser saves a component in its cache, it also saves the Expires and Last Modified values. Specifying an Expires date in the past forces the browser to request the image every time the page is viewed (with a few exceptions, such as when users click the browser’s “back” button to return to a page). If the image is already in the browser’s cache and is being re-requested, the browser will pass the Last-Modified date in the request header. This is called a conditional GET request and if the image has not been modified, the server will return a 304 Not Modified response.
Ok.. figured it out. The issue was my data.
Hello,
After doing some more testing it seems that when I just return the level 0 nodes the sorting
I see – thanks for the info.
tim
Here is the code. The error is coming from grid.custom.js
HTML:
js:
…
Hi tony, I have changed, now I'm using $.ajax (I have tried also with a standard javascript ajax function) and all go right, but now I have another problem.
I used the called to the function on the beforeShowForm event, but doing so the select doesnt fire the right value.
If I just close and reopen the form all go right.
Thank you in advance.
Tony,
The quote was a typo when I entered the text in the forum, it is not so in my code.
Anyway, when I put a call to filterToolbar into my script, I get an error on the following line in grid.custom.js:
th = $(“
“); 636
Saying that ts is not defined.
Thanks for your help!
Ron
Hello,
I did notice at the bottom of this page..
http://www.trirand.com/jqgridwiki/doku.php?id=wiki:treegrid
There is a list of “Cautions and Limitations” for the treegrid.. and it looks like adding nodes with addRowData is not supported… and it looks like that is the method you are using in your code.
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top