Skip to content

Infragistics Community Forum / Web / Ignite UI for ASP.NET Core / IGgrid paging moves to next page while newly entered value is on first page

IGgrid paging moves to next page while newly entered value is on first page

New Discussion
Azhar Amin
Azhar Amin asked on Oct 25, 2022 7:39 AM

Hi,

Below is the code for my paging,

features.Paging().PageSize(10).Type(OpType.Local).PageCountLimit(100).ShowPageSizeDropDown(true).ShowPagerRecordsLabel(true).PrevPageLabelText(“Prev”).RecordCountKey(“totalRecords”);

by default the page column size is set to 10, but if i enter 11th value, it moves to next page as expected but as i enter the new value after grid refreshing it show page 2 instead of page 1, the new value is on page 1

Sign In to post a reply

Replies

  • 0
    Riva Ivanova
    Riva Ivanova answered on Aug 24, 2022 9:56 AM

    Hello Azhar,

    Thank you for posting into our community!

    I have been looking into your question, however, I will need some additional information regarding your scenario in order to ensure that your question is addressed correctly.

    You have mentioned that after you “enter the new value after grid refreshing it show page 2 instead of page 1”.

    Could you please clarify what do you refer to with “after grid refreshing”? Do you mean after navigating to a different page or after changing the page size from the drop down?

    Additionally, by "show page 2 instead of page 1", do you mean, for example, after changing the page size the shown page is 2?

    Answering these questions would be highly appreciated and extremely helpful in providing you with a solution as soon as possible. Also, it would be great if you could provide me with a small and isolated sample that demonstrates the behavior on your side and elaborate on the steps to reproduce it?

    Having a sample which I can debug on my side will be extremely helpful in investigating the root cause of this behavior.

    Thank you for your cooperation. Looking forward to your reply.

    Sincerely,
    Riva Ivanova
    Entry Level Software Developer

    • 0
      Azhar Amin
      Azhar Amin answered on Aug 26, 2022 9:13 AM

      Hi,

      i fixed the above query just by adding one line of code in javascript:

       $("#Grid").igGridPaging("pageIndex", 0);

      In adding event of Js, it sets default page to 1

      • 0
        Riva Ivanova
        Riva Ivanova answered on Aug 29, 2022 5:31 AM

        Hello Azhar,

        I am glad that you found a solution and managed to achieve your requirement.

        Thank you for using Infragistics components.

        Regards,
        Riva Ivanova
        Entry Level Software Developer

  • 0
    Riva Ivanova
    Riva Ivanova answered on Oct 25, 2022 7:39 AM

    Hello,

    I have been looking into your question and I am under the impression that you are using the Ignite UI for Angular controls?

    Having this in mind what I would suggest is creating a separate thread in the Ignite UI for Angular section here as the current thread is regarding Ignite UI for ASP.NET Core paging functionality.

    This is for better consistency and history tracking.

    Sincerely,
    Riva Ivanova
    Entry Level Software Developer

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Azhar Amin
Favorites
0
Replies
4
Created On
Oct 25, 2022
Last Post
3 years, 4 months ago

Suggested Discussions

Created by

Created on

Oct 25, 2022 7:39 AM

Last activity on

Feb 24, 2026 9:03 AM