How to make .fetch() return data every time it's called, not just the first time

2 posts, 0 answers
  1. CDK
    CDK avatar
    9 posts
    Member since:
    Feb 2019

    Posted 10 Jan 2020 Link to this post

    As per the documentation on .fetch():

    "The fetch method makes a request to the remote service only the first time it is called"

    Why???

     

    If a RadGrid is client bound to RadClientDataSource,  I can call .rebind() on the grid and it will call the Select webservice again,   so there must be a way to "reset" something so that .fetch() will call the webservice every time it's called?

  2. CDK
    CDK avatar
    9 posts
    Member since:
    Feb 2019

    Posted 10 Jan 2020 in reply to CDK Link to this post

    I was able to get the .fetch to fire by first blanking out the data by calling .set_data([]);

     

    var client = $find("<%=RadClientDataSource1.ClientID%>");
    client.set_data([]);
    client.fetch();
Back to Top