This is a migrated thread and some comments may be shown as answers.

How do I refresh paging?

5 Answers 84 Views
Grid
This is a migrated thread and some comments may be shown as answers.
NHJ
Top achievements
Rank 1
NHJ asked on 11 Dec 2019, 03:21 AM

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

Sort by
0
Petar
Telerik team
answered on 12 Dec 2019, 11:20 AM

Hi Nam,

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.

Regards,
Petar
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
NHJ
Top achievements
Rank 1
answered on 13 Dec 2019, 12:47 AM
First thank you for the answer.

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.
0
Petar
Telerik team
answered on 16 Dec 2019, 03:01 PM

Hi Nam,

Please check this Dojo example. It filters the data in the Grid using the filter method of the DataSource and not the default built-in filter functionality. 

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. 

Regards,
Petar
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
NHJ
Top achievements
Rank 1
answered on 17 Dec 2019, 12:44 AM

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.

To recap,
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.

0
Petar
Telerik team
answered on 18 Dec 2019, 04:35 PM

Hi Nam,

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. 

Regards,


Petar
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Grid
Asked by
NHJ
Top achievements
Rank 1
Answers by
Petar
Telerik team
NHJ
Top achievements
Rank 1
Share this question
or