I have 15 data, showing 10 data per page.
1page = 10data, 2page = 5data.
Total [1, 2 Page]
There is no problem so far, but the number of pages does not decrease according to the number of new read ().
If there are only one row of results, only one page should appear,
[1, 2 Page] is maintained, “No data available" appears when page 2 is pressed, and page 2 disappears.
Attach as below picture.
Do you know how to solve this?
1. Display the grid.
2. Search by words.
3. Only data that meets the criteria is displayed.
4. However, the paging number does not change immediately with the number of data.
5 Answers, 1 is accepted
Please check this Filter Row demo. As you can see if you filter the data in the Grid, the pages count is changing depending on the number of the returned results after the filtering.
Can you check the above-linked demo and compare it to the Grid definition that is used in the application you are working on?
If you don't manage to resolve the issue to be able to help you I will need a runnable project in which the reported issue is reproducible.
I know the filter and I'm actually using it on another screen.
But I'm not trying to write that feature.
Assuming that an unconditional (no where) select QUERY gets 15 rows, if pageSize = 10 it will display a total of 2 pages. Right?
1 page = 10
2page = 5
If the where condition is defined and the data retrieved by select QUERY is "row 1", then the total number of pages must be 1 page.
Same function as the filter you described.
The only difference is that I did a QUERY manually.
But like the picture I uploaded, "2 pages" still remains.
I would like to know how when I do a QUERY by giving a condition, the total page count is automatically changed to be the same as the filter.
Does the linked Dojo demonstrate something similar to the functionality that you have in the application you are working on?
If the linked example doesn't demonstrate the functionality you are using, please modify the provided Dojo in a way the issue you experience can be reproduced and send me the edited Dojo.
Another option is to isolate the behavior you have in a new project or Dojo example and send it to me so I could further investigate what is the reason for the reported behavior.
I'm sorry Peter, is the site restricted by country?
This is Korea and unfortunately not connected.
I'll attach the file below. You only need to create a varchar type for the DB.
You are creating a manual filter function, but you do not want to use the implicit filter methods.
It's so simple.
There is a grid with user information.
There are fields like ID, PW, Address ..
The first time you read (), all users will come out. Dozens, hundreds of people are searched.
If you show 10 people on a page,
1, 2, 3, 4, 5 ... there will be a lot of pages.
Create an ID search input box there,
Enter "sawd1598" and search.
So the user is that one, not 1, 2, 3, 4, 5 ...
It must represent only one "1".
There's only one user, but there can't be 5 pages, 10 pages.
But the page doesn't change in real time. I want to know the cause.
The example is a user list, but the sample is different.
However, only the table and the fields are different, and the operation requirements are 100% the same.
Thank you for the project but I am unable to run it. Based on the provided code I cannot say what is the reason for the reported behavior. Most probably it is a server filtering issue.
Can you open the Network tab of your browser and tell me what is the response returned by the server when you apply the filtering on the Grid?
Maybe the server response will give us a hint about what could be triggering the page numbers issue.