Skip to main content
October 3, 2022
Question

Paging for 2 records in a grid and [[ have to show like this

  • October 3, 2022
  • 6 replies
  • 0 views

HI all, 

am new to this, please tell me how to give paging size of 2 in a grid and has to show "<<" like this so that another records has to show

pagingInfo: a!pagingInfo(
startIndex: 1,
batchSize:2

i gave like this but showing 2 in agrid, but no arrow marks << 

 

like this i should show 1-2 of somenum > >>

kindly edit?/modify the code 

Thanks in advance

6 replies

October 3, 2022

You can see the pageSize config under the gridField and you can provide the value of 2 to that configuration.

October 3, 2022

Thank you so much i got it

harshitb6843
October 3, 2022

In the gridField, you'll have a parameter pageSize. You can put 2 in front of it. 

harshitb6843
October 3, 2022

Or, you can keep the pagingInfo as you have configured it and pass the entire dataSubset to the grid's 'data' parameter. When you do that,l you'll also have to define pagingInfoValue and pagingInfoSaveInto. 

Doing this will directly query your data from the DB.

mikes0011
Brainy
October 3, 2022
have to define pagingInfoValue

the other parts are correct but this one is actually included within the dataSubset.

The Expression Guru