Set number of rows to view to ALL

QuestionsSet number of rows to view to ALL
Brendan Flanagan asked 11 years ago

Is it possible to set a number in this array that is the total of all records set dynamically and have that option default on grid refresh?

$grid["rowList"] = array(10,20,30,411);

1 Answers
Abu Ghufran answered 11 years ago

To have default search page count,

$grid["rowNum"] = 20;
$g->set_options($grid);

And to add count dynamically … you might need to run extra query with COUNT(*) and all conditions. and get the result value in rowNum and rowList.

Your Answer

1 + 5 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?