Author Topic: Avoid default requests  (Read 1626 times)

cosconit

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 11
    • View Profile
Avoid default requests
« on: November 27, 2020, 06:43:33 am »
Hi
  How can I avoid default request after grid rendering? I want to request remote data manually.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Avoid default requests
« Reply #1 on: November 27, 2020, 02:13:12 pm »
Please use case 1: dataModel.location = 'local'

https://paramquery.com/pro/tutorial#topic-loaddata

cosconit

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Avoid default requests
« Reply #2 on: November 30, 2020, 07:22:01 am »
I need  use 'remote' mode , but I don't want to trigger  it immediately when grid open.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Avoid default requests
« Reply #3 on: November 30, 2020, 09:32:47 am »
In that case you can keep dataModel.location = "local" initially and then update it to "remote" followed by call to refreshDataAndView() later on upon your event of interest.