Hello,
We have a read only grid with selection enabled. Users could navigate to a page(say 5th page), select certain rows and reassign the task to another user. Once the reassignment is done, the grid lands on the first page. Is there any way we could retain the Grid on the 5th page itself after reassignment.
TIA.
Discussion posts and replies are publicly visible
I think you could set the paging info in a separate local variable at the top of the code. Have that store the start index and batch size. You probably need to set refreshOnReferencedVarChange to false, and manually configure exactly how it refreshes.
Then, when it's retained after the operation, the form should requery the data from the startIndex retained, and boom you should be on page 5 still.
Thanks, Dave. All I had to do was to save the pagingInfo in pagingSaveInto of the a!gridField and pass the pagingInfo to the query entity.
Hi Sandra,
Is there a possibility of doing the same but with RecordType? I have tried but it is not possible to reference a PaginInfo, if you have an idea I thank you!!!
It should be the same with record type, provided you are passing the entire data subset in the record. Can you add the code you are using for more clarity?
Hi Harshit, I am using record filters, so if I reference a dataSubset I will lose the filters.
Please add the code. It would be more clear how you have your data structured/queried.