Hi,
I have a problem with pageSize All, It shows 'No records to display' even though its has records.
But it works perfectly other than that.
Please find below stackblitz url for the same issue.
|
// Grid’s created event handler
onCreated() {
this.grid.pagerModule.pagerObj.pagerdropdownModule.dropDownListObject.text = 'All'
} |
Hi Rajapandiyan ,
Thanks for looking into this.
In my case I need to fetch data from backend API, which has some latency meaning takes sometime to respond.
In this scenario Grid just shows loader and ' No records to display ' message.
I have tried to reproduce the issue in stackblitz, you can find below.
Thanks & Regards,
Prince
|
load(args) {
const ajax = new Ajax('https://ej2services.syncfusion.com/production/web-services/api/Orders', 'GET');
ajax.send();
ajax.onSuccess = (data: string) => {
var gridData = JSON.parse(data); // get the response from server
this.grid.dataSource = gridData; // bind the data to the Grid
setTimeout(() => {
// change the pageSize dropdown text to All after some time interval
(this.grid.pagerModule.pagerObj.pagerdropdownModule as any).dropDownListObject.text = 'All';
}, 100);
};
}
|
Hi Rajapandiyan ,
Thanks for reply.
I have one more query. Could you please let me know how can I refresh grid after assigning new records?
I need to dynamically reassign records when pageSize All and refresh the grid without regenerating the grid itself.
Thanks & Regards,
Prince
Hi Rajapandiyan,
Thanks for reply.
As per my requirement, I have a drop down, based on dropdown selection, I need to populate the grid.
I should be able to repopulate the grid if dropdown selection changes.
I have created stackblitz demo as per my requirement.
Ta2v3m (forked) (stackblitz.com)
It works well when page size is selected 10/20, but when I select page size 'All' and change the dropdown selection. Grid doesn't load with new records.
Please help me out on the same.
Thanks,
Prince