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
Pager not working
30/08/2009
08:00
Avatar
Tony
Guest
Guests

Hello,

 i wrote about my problem before, but i still has not idea whare can be a problem.

I atached HTML output from my page. Data to Grid are atached by "clientside" method

Parameter rowNum is ste to value 2

Please help me in my problem

thank you for any idea

Tony

<script type="text/javascript" type="text/javascript">
    jQuery(document).ready(function(){
        jQuery("#list2").jqGrid({
            //url:'code/OverView/GridData.php',
            //datatype: 'xml',
            //mtype: 'GET',

            datatype: 'clientSide',
            colNames:['Inv No','Date','Value', 'Unit'],
            colModel :[
                {name:'invid',index:'invid', width:55, sorttype:'int'},
                {name:'date1',index:'date1', width:90, sorttype:'date', datefmt:'Y-m-d'},
                {name:'amount',index:'amount', width:80, align:'right',sorttype:'float'},
                {name:'unit',index:'unit', width:80, align:'right',sorttype:'int'},
            ],
            sortname: 'date1',
            sortorder: 'asc',
            autowidth: true,
            pager: '#pager2',
            rowNum:2,
            viewrecords: true,
            caption: 'Consumtion History',
            pginput: false
        });
        jQuery("#list2").addRowData("0",
        {invid:"0",
        date1:"2009-01-10",
        amount:"1 234",
        unit: "KWH"});jQuery("#list2").addRowData("1",
        {invid:"1",
        date1:"2009-02-02",
        amount:"4 567",
        unit: "KWH"});jQuery("#list2").addRowData("2",
        {invid:"2",
        date1:"2009-03-03",
        amount:"976 478 887 766",
        unit: "MWH"});jQuery("#list2").addRowData("3",
        {invid:"3",
        date1:"2009-04-22",
        amount:"897 867 657 644 655",
        unit: "KWH"});jQuery("#list2").addRowData("4",
        {invid:"4",
        date1:"2009-07-31",
        amount:"9",
        unit: "WH"});jQuery("#list2").addRowData("5",
        {invid:"5",
        date1:"2009-08-31",
        amount:"10",
        unit: "WH"});
    });
</script>

30/08/2009
10:51
Avatar
MamaliFrenchi
Member
Members
Forum Posts: 62
Member Since:
22/12/2008
sp_UserOfflineSmall Offline

First of all the pager must be pointed to a jquery object, so in your case : pager:jquery( '#pager2'), then you must also add navGrid in order to add + Edit, and other built in buttons. Please read the documentation all those issuues are explained.

http://www.secondpersonplural....../index.htm

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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