This is a migrated thread and some comments may be shown as answers.

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

1 Answer 86 Views
ClientDataSource
This is a migrated thread and some comments may be shown as answers.
CDK
Top achievements
Rank 1
CDK asked on 10 Jan 2020, 02:58 PM

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?

1 Answer, 1 is accepted

Sort by
0
CDK
Top achievements
Rank 1
answered on 10 Jan 2020, 06:12 PM

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();
Tags
ClientDataSource
Asked by
CDK
Top achievements
Rank 1
Answers by
CDK
Top achievements
Rank 1
Share this question
or