When i try to search some records on iggrid using search text box, i get required result on grid but my total records and no. of pages are not updating, they remain same as before search.after search i got 3 records, but in pagination it shows data
Hello Azhar,
I am glad I was able to assist you regarding this matter.
Thank you for using Infragistics components.
Regards,Riva IvanovaEntry Level Software Developer
Thank you Riva, I fixed the same issue by fixing my Stored procedure script, i had to do some adjustment to my queries.Again Thank you so much for helping me out.Regards,Azhar
I have modified the previous sample to use remote filtering and, on my side, when filtering the records via the search text box, the results are displayed properly.
Additionally, regarding setting the page index to 0, i.e., to the first page, could you please clarify what is the behavior on your side without setting the page index? I am asking this question, because, on my side, if I click on another page to view the results, e.g., page 3, and then filter the results, the filtered results are displayed automatically starting from the first page.
Furthermore, after performing filtering via the search text box and changing the page size, the page refreshes, however, the filtered results remain the same and only the displayed records count for the current page changes as expected.
This could be observed below:
Having this in mind, as I am not sure of the overall configuration of the igGrid, the custom filtering function and the controller that returns the filtered data, in order to assist you further, it would be extremely helpful if you could provide me with a sample that demonstrates the behavior on your side.
Additionally, attached could be found the modified sample for your reference.
Looking forward to your reply.
Sincerely,Riva IvanovaEntry Level Software Developer
5635.RemoteFiltering.zip
Thanks Riva, As i can see you are using Type - Local, and i am using Remote, i don't know wheter i would do any impact or not.In my case, i have written a javascript function which hits a controller to get the filtered data from database.In my javascript i have kept the default pageIndex as 0 which only return first page.could it be the reason in my case remaining records are not added to new page and
also on filtered result page if i change page size in dropdown menu, it refreshes the page which updates the total record count to overall count , changing the filtered result count.How can i stop it?
Thank you for following up!
I have been looking into your additional question and tested this behavior with the provided sample, however, on my side, I was not able to reproduce it and the matching records count as well as the required pages are displayed correctly.
Having this in mind, could you please test this behavior with the provided sample and confirm that the behavior is reproducible?
Additionally, if possible, could you please provide a small sample demonstrating the described behavior on your side?
Having a sample, which I can debug on my side, will be highly appreciated and extremely helpful in providing you with a solution as soon as possible.
Thank you for your cooperation. Looking forward to your reply.