Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    SetTimeOut on List grid

    I have a list grid which is setAutoFetchData(true). So I don't manually invoke fetch/ filter, smartgwt invokes these methods. So how do I set querytimeout on the datasource of the list grid instead of DSRequest object.

    If I have to invoke fetch operation then I can set the time out creating a dSrequest object, setting the timeout and then calling appropriate fetch method with dsRequest as parameter.

    But what if I dont want to call fetch manually. So is there a way to configure default timeout at datasource level ?


    Thanks.

    #2
    If you need any parameters passed other than criteria, you should call fetchData() manually. There are other possibilities (like using listGrid.fetchOperation to trigger login in transformRequest() that adds a timeout setting) but there are much more complicated than simply switching over to calling fetchData() manually.

    Comment

    Working...
    X