Forum


12:41

21/01/2010

Hi,
I'm having a bit of a problem with jqGridImport and loadonce. What I'm trying to do is load grid configuration and data using json with one single load. I've defined loadonce parameter to true. Grid loads just fine and everything else seems to work as it should, but when I try to sort grid clicking one of the columns, "Loading.." text appears and data is loaded again from url defined in grid. This happens only at the first time, the second time I click column grid is sorted using data in grid and without request being sent to server.
I've tried searching this forum and googling but haven't found any solutions how to fix this, so if anyone can give me hint what to try with this, that would be great!
One feature request; would it be possible to get somekind of failure event when importing grid?
14:58

Moderators
30/10/2007

Hello,
Could you please send me the string that is used in jqGridImport?
Also which version is used.
One feature request; would it be possible to get somekind of failure event when importing grid?
Thanks for this. I have missed this. ajax options will be added in this method and this will be available in the upcomming 3.6.3 release.
Best Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
11:06

21/01/2010

Hi Tony,
Sorry for my late reply. I finally got some time to build you an test grid. Originally I was using version 3.6.2, but I tried with version 3.6.3 today with no difference in result.
Here's the string that import returns:
Grid is imported with this:
imptype: "json"
, impurl: '<%=System.Web.VirtualPathUtility.ToAbsolute("~/")%>TestGridService.svc/GetTestGridData'
, jsonGrid: {
config: "grid",
data: "data"
}
});
16:35

Moderators
30/10/2007

Hello,
If the data is a part from the import string in your case a datatype:'local' should be set, since to load the data from the import string we first save the datatype, insert the data and then put back it again.
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
36 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66