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

Datasource end request

1 Answer 78 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Patrick Rioux
Top achievements
Rank 1
Patrick Rioux asked on 01 Jun 2012, 12:25 PM
Hi, The datasource has the change event when receiving data. The startrequest when the call is performed. When the datasource get no data, how can I handle this? It seem missing a call back. Thanks.

1 Answer, 1 is accepted

Sort by
0
Patrick Rioux
Top achievements
Rank 1
answered on 04 Jun 2012, 12:09 PM
Ok I figured this out...The change event is triggered  properly and I can check the data.length.

 change:function() {
  var data = this.data();
  if (data.length > 0) {
                                                           
  }
  else {
                                                    
 }
}
Tags
Data Source
Asked by
Patrick Rioux
Top achievements
Rank 1
Answers by
Patrick Rioux
Top achievements
Rank 1
Share this question
or