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
rowList - all results
17/02/2009
09:34
Avatar
majkel
Member
Members
Forum Posts: 69
Member Since:
10/11/2008
sp_UserOfflineSmall Offline

It would be nice to have such a possiblity:

rowList:[10,20,30,50,100,1000,'*']

all results without paging.

 I've done Server side handling for '*' but it looks like there should be support olso on client side.

17/02/2009
10:31
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

What do you mean with - support on client side?

Did you mean the the * is not passed to the server?

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.

18/02/2009
09:35
Avatar
majkel
Member
Members
Forum Posts: 69
Member Since:
10/11/2008
sp_UserOfflineSmall Offline

I don't know the internal structure of jqgrid. When I click * in row list table is refreshed.  PHP generate JSON results properly(select query without LIMIT -> all results),but paging is the same as in previous paging.(ex: 1/7 page, but should be 1/1)

testing JSON

http://localhost/JSON_translat.....php?rows=*

generated

{"page":1,"total":1,"records":"604","rows":[{"id_product" ...

....

}]}

20/02/2009
02:09
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

The grid does nothing to do. Actually your server side code should make these calculation. I suppose you use something like the examples and if the page limit is * then you should check your code server side since if param=*,

then a*param give you wrong result.

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.

25/02/2009
12:03
Avatar
rtordable
Member
Members
Forum Posts: 15
Member Since:
24/02/2009
sp_UserOfflineSmall Offline

I have tested rowList with * value or -1 or 0 and jQgrid submits via POST in the rows parameter the last valid rows value selected. 

jQgrid consider * and 0 and -1 incorrect values.

04/03/2009
07:41
Avatar
majkel
Member
Members
Forum Posts: 69
Member Since:
10/11/2008
sp_UserOfflineSmall Offline

Confirmed rtordable test:

$limit = $_REQUEST['rows'];

$limit throws the last valid result. * can't be passed.

Greetings

Majkel

11/03/2009
02:19
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Thanks. Fixed.

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.

10/10/2009
12:38
Avatar
turya
Member
Members
Forum Posts: 7
Member Since:
20/03/2009
sp_UserOfflineSmall Offline

The problem I've seen is with the pager, which chokes on rowNums it doesn't like 'All','0' will end up returning NaN values in recordtext.

The way I've gotten around this is to add a rowNum option of 100000000 or some other arbitrarily huge #, and then add a jquery call to make the pulldown look nice:

add to grid options:

rowList:[10,20,30,100000000],
loadComplete: function() {
    $("option[value=100000000]").text('All');
}

YMMV. It would be nice if jgGrid had an elegant built in way to handle this.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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