Can we make pager no editable in wijmo grid

Posted by: sdayal on 6 October 2021, 10:11 pm EST

  • Posted 6 October 2021, 10:11 pm EST

    Hi Wijmo team,

    Can we make pager no editable(if I change the no then it should change the page) in wijmo grid? and How?

  • Marked as Answer

    Replied 7 October 2021, 4:22 pm EST


    There isn't any inbuilt feature for making a pager editable, however, you can customize it to take input for the current page index. Please refer to the sample link below demonstrating the same:

    In the sample above, I have appended an input element to the pager to take the current page index and updated that index by handling input events into the collectionView. Also, make sure to update the index on pageChanged of the collectionView to show the current page index.

    Let us know if that's works for you.

  • Replied 18 October 2021, 10:17 pm EST


    As we bring the data dynamically this 'initializedPager' method does not provide us the pagecount or source collection value.

    Can we use some other event in this ?

  • Replied 19 October 2021, 10:10 pm EST


    I have created a function(createEditablePaging) to make the pager editable, you can use this function to create the editable paging navigator, you can use this function to dynamically make the pager editable. Please refer to the sample link below for reference:

    In the above sample, I have called the function after the view gets created. Let us know if thats works for you.

  • Replied 25 October 2021, 10:40 pm EST

    Hi Wijmo Team,

    1) Try to enter two or three digit number in input box, its not getting captured in below code:

    this.currentPageNo.addEventListener('input', (e: any) => {
    if ( != null) {
    grid.collectionView.moveToPage(parseInt( - 1);

    If I enter 22 or 11 then only take 2 or 1 instead of 22 or 11. Can you please help and

    2) How can we restrict it to only Number values as I am able to add text values in this input box.

  • Replied 26 October 2021, 6:02 pm EST


    1. Sorry for the misunderstanding, I have updated the sample link below to work with more than one digit pageSize:

    In the sample link above, I have handle the keyup event instead of input and updated the pageIndex using entered value in the inputElement.

    2. You need to set the type attribute of the InputElement to number like type="number" to only type numbers in the input field.

  • Replied 28 October 2021, 11:21 pm EST


    Thanks for response. The is one more thing how can we update the pager size count on filter.
  • Replied 1 November 2021, 9:01 pm EST


    To update the pager size count on the filter, we may handle the filterApplied event of FlexGrid Filter which occurs once the filter is applied, and may update the page count accordingly.

    For more information on the above event, please refer to the below link:

    Please refer to the updated sample below.

    Dushyant Sharma
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels