Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Suggested Answer
+1
person also asked this
people also asked this
Replies
7 replies
Answers
1 answer
Subscribers
7 subscribers
Views
3257 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Grid paging issue
akanksham292
over 8 years ago
I have a gridLayout code, in that i am using gridSelection and defined pagingInfo for batchSize 20. In value of gridLayout i have gridSelection. I have total 99 records from DB. But in grid it is showing only batchSize number of records. Please tell me where I am making mistake.
OriginalPostID-244737
Discussion posts and replies are publicly visible
0
rodgraham
Certified Lead Developer
over 8 years ago
If you're using gridLayout that's an editable grid, if you want your data to page you can use gridField to create a paging grid. Have a look in
forum.appian.com/.../SAIL_Recipes.html
for examples of both types.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Sidhant Behura
over 8 years ago
Could you please attach the code snippet of the grid.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Tim
Certified Lead Developer
over 8 years ago
Also have a look at this example and how it uses todatasubset() on an array of data for paging in a grid
forum.appian.com/.../recipe_display_array_of_data_in_a_grid.html
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Shashank
over 8 years ago
@akanksham , it would be helpful , if you can please provide us with the code snippet as suggested above
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
+1
sikhivahans
over 8 years ago
@akanksham The keyword gridLayout used by you is suggesting that you are making use of the Editable Grid. If you would like to go with Editable Grid, you have two options as follows:
1. Get all the 99 records at once, that is batch size = -1
2. Add the custom pagination logic to the editable grid. (that is, simulate the paging functionality we observe in the Paging Grid) If you want to go ahead with this, application at http://bit.ly/2fegMuX should serve as an example.
I assume that you are aware of the fact that Editable Grid won't paginate/sort as Paging Grid do and that's the reason why we should either show all the Records at one go or add a custom pagination logic.
I would personally recommend what @rodgraham/@tim.clarke has suggested, as Editable Grid lacks sorting and also needs a customised logic for pagination which Paging Grid already has. It's your call. I believe attaching the code snippet might not be needed at this moment as it seems to me like a decision of which component to choose.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Reject Answer
Cancel
0
Rama Thummala
Certified Lead Developer
over 8 years ago
@Are you using gridLayout() or gridField().
Please configure gridField() to get paging grid , if you are using gridLayout().
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
akanksham292
over 8 years ago
Thanks everyone for the solution.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel