Hi,
I figured it out. So the issue in my project was that the OnGet was getting called but OnPostDataSource was not getting called.
Then I noticed that the grid Load event (js function onLoad) had a spelling mistake. I fixed it and now the OnPostDataSource is getting called correctly, and the grid is populated.
I tried to remove the load event handler and the OnPostDataSource is no called.
Please share a link if possible, which explains why this below code is mandatory and why it does a post callback.
<script>
function onLoad() {
this.dataSource.dataSource.headers = [{ 'XSRF-TOKEN': $("input:hidden[name='__RequestVerificationToken']").val() }];
}
</script>
Thanks
Avinash Tauro