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
.navGrid didn't work
12/12/2008
10:42
Avatar
ekid
Member
Members
Forum Posts: 16
Member Since:
12/12/2008
sp_UserOfflineSmall Offline

<script type=”text/javascript”>
jQuery(document).ready(function(){
jQuery(”#list2″).jqGrid({
  
    url:'xcustomerdata.php?nd='+new Date().getTime(),
 
    datatype: “json”,
 width:1000,
 height: 400,
 
    colNames:['ID'],
  
    colModel:[
        {name:'c_id',index:'c_id', width:50}
          ],
  
    pager: jQuery('#pager2'),  
    rowNum:10,   
    rowList:[10,20,30],
    imgpath: 'themes/sand/images',
    sortname: 'c_id',
    viewrecords: true,
    sortorder: “desc”,
    caption: “demo”
 
});
}).navGrid('#pager2',{refresh: true,edit:true,add:true,del:true});
</script>

16/12/2008
02:36
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Please be a more specific. What does not work? Otherwiese 

nobody will respond to your problem.

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.

28/01/2009
02:55
Avatar
tinti
New Member
Members
Forum Posts: 2
Member Since:
28/01/2009
sp_UserOfflineSmall Offline

I have the same error, e.g. I'd like to have a refresh button on my pager, but this isn't shown on my webpage.

Could someone post a very simple example on how to use the pager?

Thanks

29/01/2009
06:21
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Also really can not help.

Before posting any issue please

1. jQuerry version

2. jqGridVersion

3. OS

4. browser

5. Problem

6. Code and data if possible

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.

26/02/2009
09:53
Avatar
jnavratil
Member
Members
Forum Posts: 23
Member Since:
12/02/2009
sp_UserOfflineSmall Offline

Similar problem here.

jquery 1.3.1

jqgrid 3.4

firefox 3.0.6

Fedora 10 (64-bit)

code...

            jQuery(gridName).jqGrid({
                url:'queryTable.php?tableName='+data.table+
                    '&columnList='+encodeURIComponent(colNames),
                datatype: 'json',
                jsonReader: {
                    root: 'rows',
                    page: 'page',
                    total: 'total',
                    records: 'records',
                    repeatitems: true,
                    cell: 'cell',
                    id: 'id'
                },
                mtype: 'GET',

                colNames: colNames,
                colModel: colModel,
                pager: jQuery('#pager'),
                rowNum:10,
                rowList:[10,20,30],
                sortname: data.key,
                sortorder: 'asc',
                viewrecords: true,
                imgpath: 'themes/basic/images',
                onSelectRow: function(id){
                    if(id && id!==lastsel2){
                        jQuery(gridName).restoreRow(lastsel2);
                        jQuery(gridName).editRow(id, true, beforeEditEvent, afterUpdateEvent);
                        lastsel2=id;
                    }
                },
                editurl: "server.php",
                caption: "Table:"+data.table
                }.
            navGrid("#pager",
                {refresh: true, edit: true, add: true, del: false, search: true}).
            navButtonAdd("#pager"
                { caption:"Add", onClickButton: function(){ alert("Adding Row")}});
        };

Problem...

Grid displays properly but there are no refresh, edit, add, del or search buttons on the pager.  The navigation buttons and page numbers are present.

27/02/2009
09:01
Avatar
jnavratil
Member
Members
Forum Posts: 23
Member Since:
12/02/2009
sp_UserOfflineSmall Offline

NEVERMIND!

I am embarassed to say that I was editing a copy of this code in one directory and executing from another.  It works just as advertised.  That's the trouble with being a complete newbie.  The lack of familiarity makes it hard to know where to look.  My apologies.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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