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
Paging
15/01/2010
15:15
Avatar
Kris-I
Member
Members
Forum Posts: 9
Member Since:
12/01/2010
sp_UserOfflineSmall Offline

Hello,

I have a grid, limited by default at 10 record by page. When I have more than 10 record I still have page "1 of 1 page". If I switch to 20 records by page I see all my records.

Could you tell me what I missed ?

Thanks,

17/01/2010
11:06
Avatar
Kris-I
Member
Members
Forum Posts: 9
Member Since:
12/01/2010
sp_UserOfflineSmall Offline

Anybody ?

19/01/2010
11:37
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Nobody will help if the is a no code.

Try to check your server side code.

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.

19/01/2010
12:19
Avatar
Kris-I
Member
Members
Forum Posts: 9
Member Since:
12/01/2010
sp_UserOfflineSmall Offline

Here the code :

jQuery(document).ready(function() {
    jQuery("#gridEmpoyee").jqGrid({
        url: '/Employee/ListToGrid/',
        datatype: 'json',
        mtype: 'POST',
        height: 255,
        width: 600,
        colNames: ['Id', 'Login', 'LastName', 'FirstName', 'Actif'],
        colModel: [
            { name: 'id', index: 'Id', width: 0, hidden: true },
            { name: 'login', index: 'Login', width: 100, resizable: true, editable: false },
            { name: 'firstName', index: 'FirstName', width: 150, resizable: true, editable: true },
            { name: 'lastName', index: 'LastName', width: 150, resizable: true, editable: true },
            { name: 'isActive', index: 'IsACtive', width: 60, editable: true, edittype: "checkbox", editoptions: { value: "True:False"} },
        ],
        pager: jQuery('#sandgridp'),
        rowNum: 10,
        onSelectRow: function(id) {
            employeeId = id;
        },
        rowList: [2, 5, 10, 20, 50],
        sortname: 'FirstName',
        sortorder: "desc",
        caption: 'Liste des employés',
        editurl: "/Employee/Update/"
    });
});
jQuery("#gridEmpoyee").jqGrid('navGrid', "#sandgridp", { edit: false, add: false, del: false, refresh: false, search: false });
jQuery("#gridEmpoyee").jqGrid('gridResize', { minWidth: 600, maxWidth: 800, minHeight: 255, maxHeight: 350 });

22/01/2010
13:04
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

I think that the problem here is your server side code. Please check it again. If you are in PHP please look in the demo files how this can be done.

Best 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.

24/01/2010
11:07
Avatar
Kris-I
Member
Members
Forum Posts: 9
Member Since:
12/01/2010
sp_UserOfflineSmall Offline

Server side. ... only ? I don't thik so

I have 5 records, when I set the number to display to 2 ... I see "Page 1 on (1)" the (1) is not server side.

Here the value post to the server side :

_search false
nd 1264323687068
page 1
rows 2
sidx FirstName
sord desc

How to total page is set ?

Thanks,

24/01/2010
18:06
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

The total pages should be send from the server. Please do not mix total with total records.

Also you can look here

http://www.trirand.com/jqgridw.....eving_data

Best 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:
59 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