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

Missing _dequeueRequest?

1 Answer 32 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Trinet
Top achievements
Rank 1
Trinet asked on 23 Jul 2012, 01:06 PM
Hi,
I'm using custom errors where retrieving data from server. 

dataSource = new kendo.data.DataSource({
      type: "json",
      serverPaging: true,
      serverSorting: true,
      serverFiltering: false,
      error: function (e) {
    // display custom error
      },
      ...
});

If an error occurred on the server when retrieving data, server respond with some error message which is handled in your success function.

success: function(data) {
    var that = this,
        options = that.options,
        hasGroups = options.serverGrouping === true && that._group && that._group.length > 0;
 
    data = that.reader.parse(data);
 
    if (that._handleCustomErrors(data)) {
                 
        // should dequeue request!
        // that._dequeueRequest();
         return;
    }
 
    ...
 
    that._dequeueRequest(); // only called if any data is retrived
    that._process(that._data);
}

but there is no that._dequeueRequest(), so any new request is not started. 

Thanks in advance! 

1 Answer, 1 is accepted

Sort by
0
Accepted
Rosen
Telerik team
answered on 24 Jul 2012, 06:28 AM
Hi Mitja,

Indeed, you are correct. However, we managed to address this, thus the fix will be included in the next internal build. I have updated your telerik points as token of gratitude for bringing this to our attention.

Regards,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Data Source
Asked by
Trinet
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Share this question
or