Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_Related Related Topics sp_TopicIcon
Grid not Render after a jqGridImport
09/05/2014
05:09
Avatar
Kenneth
Member
Members
Forum Posts: 5
Member Since:
09/05/2014
sp_UserOfflineSmall Offline

jquery version is 1.10

grid version is 4.6

I have developed a method that uses the jqGridExport to get an XML string and save's it in a database.

then the user picks a grid configuration from a list of save configurations. the grid fetchs the configuration from the server.

we then unload the grid.

then we use the jqGridImport function to import the xml string.

we observe the grid widget making a call for data to the server and information is returned but at the end of this there is no grid just the table and pager elements in there unloaded state.

To get this working this far because we did encounter errors where the import was not properly parsing functions back into functions it was leaving them as strings.

I forked the jqGrid project on github and updated the grid source files to include what I had to change in order to make this work for me to this point.

my github user is kccarter76 and I have created a pull request so you can look at the changes that I made to the 4.6 source so far.

the id is #598.

do you know of any reason as to why the grid is not initializing or can you give me an idea where to look.

thank you

Kenneth Carter

09/05/2014
18:37
Avatar
Kenneth
Member
Members
Forum Posts: 5
Member Since:
09/05/2014
sp_UserOfflineSmall Offline

I was able to resolve the issue see pull request #598 on github for the code changes to the jq grid source located in the xml2json function.

the main issue is that the function and boolean values where never parsed back into there javascript equivalent. they remained as strings. resolving that parsing issue resolved the import issue.Smile

13/05/2014
11:01
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

I have answered to you in GitHub

Regards

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.

13/05/2014
18:58
Avatar
Kenneth
Member
Members
Forum Posts: 5
Member Since:
09/05/2014
sp_UserOfflineSmall Offline

I have done as you requested and created a new pull request.

https://github.com/tonytomov/jqGrid/pull/602

this is the new pull request

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
25 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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information