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

Postback twice caused by dataSource.sync(); on slow connections

3 Answers 104 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jacob
Top achievements
Rank 1
Jacob asked on 17 Aug 2015, 04:28 PM

Hi,

Is it possible, that dataSource.sync(); causes a double postback if using a slow connection ?

It looks like that the client postback twice if the server doesn't reply within e.g. 15 seconds.

The code:

var dataSource = $("#" + gridname).data("kendoGrid").dataSource;
dataSource.sync();
Is it something you have seen before - if not, then I guess I'll have to find it somewhere else in my code :-)

Are there any good ways to prevent double postbacks using the kendo framework?

Thanks.

 

3 Answers, 1 is accepted

Sort by
0
Accepted
Kiril Nikolov
Telerik team
answered on 19 Aug 2015, 08:29 AM

Hello Jacob,

In general the sync() method of the dataSource will issue a single ajax call to your remote server to update the data. If the request fails, then the error event will be thrown and no retries will be made. Please examine your code if you something in the dataBound event or any other events of the grid, that might be causing the second request.

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Jacob
Top achievements
Rank 1
answered on 20 Aug 2015, 06:00 AM

Thanks,

Just want to be sure - there could have been some known issues...

/Peter

0
Kiril Nikolov
Telerik team
answered on 20 Aug 2015, 08:37 AM

Hello Jacob,

 

You are welcome.

 

In case something else comes up do not hesitate to contact us.

 

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