pagination in Editable Grid

Hii All,

Can anybody help me how  to Implement pagination in Editable Grid?

  Discussion posts and replies are publicly visible

Parents
  • As Naresh suggested already, this has been discussed many times in the past in previous posts here in Community, usually under the subject heading of "sorting" editable grids (for our purpses, sorting and pagination should be treated as essentially the same subject since they both involve the same principles and the same underlying functionality).

    That being said, I just tried searching for past posts on the subject and I find that searching old posts seems to be broken at the moment.  I think someone may have mentioned this to me last week but I'd forgotten.  / is this a known issue? (Sorry to keep bugging you two this morning).

    Back to the subject at hand, though - as in the past, I strongly recommend against rushing into implementation of some bespoke editable-grid-pagination scheme, especially since it requires manual implemention and some pretty serious work-arounds to avoid overwriting already-changed data. It's doable but in my estimation, anyone familiar enough with manual SAIL development to do this safely, will also be familiar enough with it to do the implementation pretty much on their own.  This isn't meant as some sort of "gatekeeping", but more as an advisory of how difficult it can be (i usually don't even try to do it myself).  I usually suggest, instead, to have a read-only grid (with inherent paging) where a user can click some sort of "edit" link on an individual row, make and save changes to that row, then continue with other rows if they want.

  • 0
    Certified Lead Developer
    in reply to Mike Schmitt

    Mike, That's actually one of my favorite patterns.  It would come across even better if Appian came with some cool screen transition animations, but alas.

    The idea is that you hide the grid and show a small form (in a boxLayout or a card or something perhaps) with an obvious control to save or cancel your edits to the one row, and when you do, voila the changes are in the row in the grid when it reappears.  You do it with 2 mutually exclusive showWhen's on the sub-form and on the grid.  When one is showing the other is necessarily hiding.

    The main benefit of this, of course, is that you get the paging grid's paging, sorting, filtering, searching, export to excel, and other features for free, and you don't have to deal with fat fingers as much, and you can customize the look and feel of your inputs with anything you want, even stuff that doesn't work on editable grids, all for just one extra click or two for the user.

  • Exactly.  And you don't have to implement some brain-melting, bespoke saveInto code hijinks to get the row-level changes to not be overwritten as soon as the user pages or sorts the grid.

Reply Children
No Data