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_TopicIcon
JQGrid Sort And Search Not Working With JSON IMPORT STRING
02/08/2011
06:13
Avatar
Kamal Shah
New Member
Members
Forum Posts: 1
Member Since:
02/08/2011
sp_UserOfflineSmall Offline

I am trying to import configuration and data as jsonstring. Data is being displayed properly on screen but sort and search is not working. It is not giving any java script error and seems relative functions have been called properly(internally by jqgrid).

JQGrid Version : 4.0

var jsonData = '{"grid":{"page":"1","rowNum":"50","rowTotal":"1","records":"10","pager":"#pager","colModel":[{"name":"Column1","index":"Column1","search":true,"title":true,"resizable":true,"sortable":true,"align":"left"},{"name":"Column2","index":"Column2","search":true,"title":true,"resizable":true,"sortable":true,"align":"left"},{"name":"Column3","index":"Column3","search":true,"title":true,"hidden":true,"resizable":true,"sortable":true,"align":"left"},{"name":"Column4","index":"Column4","search":true,"title":true,"hidden":true,"resizable":true,"sortable":true,"align":"left"}],"data":[{"id":"0","row":["1111","aaaa"," ","0055"]},{"id":"1","row":["2222","bbbb"," ","0655"]},{"id":"2","row":["3333","cccc"," ","1254"]},"rowList":["50","100","200","300"],"colNames":["Column1","Column2","Column3","Column4"],"datatype":"local","altRows":true,"shrinkToFit":false,"jsonReader":{"root":"data","page":"page","total":"total","records":"records","repeatitems":true,"cell":"row","id":"id"},"reccount":"10","viewrecords":true,"loadonce":true,"multiselect":true,"toolbar":"true","scrollOffset":"0","gridview":true,"altclass":"altRow","ignoreCase":true,"localReader":{"root":"data","page":"page","total":"total","records":"records","repeatitems":true,"cell":"row","id":"id"},"width":"700","tblwidth":"700"}}';

                       

            var mygrid=jQuery("#feedList").jqGridImport(

                        {

                        imptype: 'jsonstring' ,

                        impstring: jsonData ,

                        jsonGrid :{

                        config :  "grid" ,

                        data:  "data"

                        },

                        mtype :  "POST" ,

                        datatype :  "local" ,

                        importComplete: function(){}

            });

Please guide me, if I am missing something.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
47 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