Hi team,
How can we do infinite scroll or pagination on the grid? Is this supported?
Example of grid https://bryntum.com/examples/scheduler-pro/drag-from-grid/
Support Forum
By infinite scroll, you mean loading as you scroll? We have a ticket open for this: https://github.com/bryntum/support/issues/1804
Here's how you implement paging:
https://bryntum.com/examples/grid/paged/
(Please note, if you are using the Grid you also need a license for it)
Hi @saki I configured it works if only I am adding tbar
tbar: [
{
type: 'number',
ref: 'fieldPageSize',
placeholder: 'Page size',
label: 'Page size',
tooltip: 'Enter number of records in each page (10 - 100) and press Apply',
value: pageSize,
width: '11em',
min: minCount,
max: maxCount,
step: 5
},
{
type: 'number',
ref: 'fieldRowCount',
placeholder: 'Total records',
label: 'Records',
tooltip: 'Enter number of records to generate (10 - 1000) and press Apply',
value: rowCount,
width: '11em',
min: minCount,
max: maxCount,
step: 10
},
{
type: 'button',
text: 'Apply',
ref: 'buttonApply',
icon: 'b-fa-check',
tooltip: 'Apply page size and number of records to data loader',
onClick () {
console.log('sdsd');
}
}
],
But Once I am adding bbar config it throwing error:-
bbar : {
type : 'pagingtoolbar',
items : {
// Uncomment this to add an extra button
// click : {
// type : 'button',
// text : 'Click me',
// onClick : () => console.log('Clicked button'),
// weight : 1000 // append to the end of default items
// }
}
}
Error that I am getting after adding bbr is TypeError: me.L(...) is not a function. I attached the screen-shot of error. Please guide me the reason of failing.
- Attachments
-
- Screenshot 2021-10-13 at 5.19.15 PM.png (355.25 KiB) Viewed 2807 times
I have modified our React Scheduler Drag from Grid demo adding the paging toolbar to the unplanned grid and it worked. I'm attaching the code so that you can use it as the starting point.
Note: Loading next page does not work in this demo as we do not have the appropriate backend.
- Attachments
-
- drag-from-grid.zip
- (2.78 MiB) Downloaded 138 times