Is it possible to load the grid without any data until the first search filter is triggered

QuestionsIs it possible to load the grid without any data until the first search filter is triggered
James Davis asked 2 years ago

I have a DB connected GRID and I want to load the grid with no data until a search creiteria is entered in the toolbar by the magnifying glass icon in toolbar. Using the code below does not work at all. That code also doesn’t seem like it is for DB backed Grid?

https://www.gridphp.com/docs/misc-faqs/#q-is-it-possible-to-load-the-grid-without-any-data-until-the-first-search-filter-is-triggered

1 Answers
Abu Ghufran Staff answered 2 years ago

Hello,

Ideally this code should work. Basically, the trick is to set the grid to load locally at first and when it get refreshed locally, it switch next loading from server.

Make sure $opt and list1 are replaced with correct variables of your code.

You can also send your code for review.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

5 + 20 =

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?