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 Loading Local Data?
25/03/2009
11:45
Avatar
William T. Allen
New Member
Members
Forum Posts: 2
Member Since:
24/03/2009
sp_UserOfflineSmall Offline

Hello,

Someone have an example of jqGrid loading local data in any format...???
Help would be greatly appreciated...

Cheers - William

31/03/2009
20:07
Avatar
ericnickus
Member
Members
Forum Posts: 7
Member Since:
31/03/2009
sp_UserOfflineSmall Offline

sure do... Only thing is... it doesn;t work well in IE7.    Result is the javascript array

I left the comments in to show you what I've been wrestling with as far as the IE 7 b.s.

    function OnComplete(result) {

         if (result != null) {

             jQuery("#list2").jqGrid({
                  
       //      url:'localhost'+new Date().getTime(),
       //      url: "myurl.php",
       //      datatype: "clientSide",
                
                 datatype: "clientside",      
                 height: "400",

                 colNames: ['Title', 'Artist', 'Auditionplayer', 'Editorplayer'],
                 colModel: [
    { name: 'title', index: 'title', width: 185 },
     { name: 'artist', index: 'artist', width: 140 },
      { name: 'auditionurl', index: 'auditionurl', width: 220, align: "left" },
       { name: 'editauditionurl', index: 'editauditionurl', width: 235, align: "left" }
     ],
                viewrecords: true,
                 caption: "SongList"

             });
             jQuery("#list2").clearGridData();
    //        jQuery("#list2").setGridParam({ url: +new Date().getTime() });  
             var _songs = result;
             for (var i = 0; i <= _songs.length; i++) {

                 jQuery("#list2").addRowData(i + 1, _songs[i]);
            }
         }
     }
if you can figure out the IE7 problem , please let me know, plus,,, the hide grid button is wierd

01/04/2009
03:18
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

datatype: “clientside”,  is not correct you should do

datatype: “clientSide”,

or

datatype: “local”,

Also what is happen if you try just with simple grid and array.

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.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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