Author Topic: Remote Load not working  (Read 313 times)

SDS

  • Newbie
  • *
  • Posts: 8
  • SDS
    • View Profile
Remote Load not working
« on: May 30, 2024, 10:24:57 am »
First of all, Congratulations on such a wonderful software "Product" from India.

My Query:
The grid when configured for "remote" load, doesn't get refreshed automatically. Initially it shows a blank grid with no headers, only pager but on Refresh button click on Pager displays the complete grid as expected with data.

In browser console I get a message as shown in the attachments.
Even it doesn't hit the "actionresult" code in the controller untill refresh button click. I have attached the View part of the code.

Please guide on the query. Thanks in advance. 

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Remote Load not working
« Reply #1 on: May 30, 2024, 12:34:15 pm »
Thanks for the compliment.

More information is required besides the screenshot to find the cause of error. Please share a jsfiddle ( with small test case reproducing the error ) to help resolve the issue.

You can refer to these examples of remote url

with local paging: https://paramquery.com/pro/demos/paging_local

with remote paging: https://paramquery.com/pro/demos/paging

If it's not hitting the remote url, then dataModel.error callback can be implemented to catch the details of the error.

SDS

  • Newbie
  • *
  • Posts: 8
  • SDS
    • View Profile
Re: Remote Load not working
« Reply #2 on: May 30, 2024, 02:48:01 pm »
If it were a problem with datamodel or colmodel, then it should not work at all even on click of Pager refresh button. Is there anything I am missing in the source I have provided?

SDS

  • Newbie
  • *
  • Posts: 8
  • SDS
    • View Profile
Re: Remote Load not working
« Reply #3 on: May 30, 2024, 04:59:31 pm »
The above problem is solved for now.. Thanks