Completed
Last Updated: 27 Feb 2015 21:23 by ADMIN
Christian
Created on: 23 Sep 2011 13:24
Category: Data Source
Type: Feature Request
50
Add support for automatic polling/refresh on DataSource
Add support for automatic polling/refresh on DataSource.
Property: interval in milliseconds
11 comments
ADMIN
Telerik Admin
Posted on: 19 May 2014 09:09
This is indeed a possible assumption, iman. However, since the original poster or other guys who joined the discussion have not commented yet, and the SignalR solution is doable, I'll leave the status of the thread unchanged.
Iman
Posted on: 17 May 2014 13:35
@kenshin: I think the goal of people who upvote for this idea was access to properties like "autoRefresh:true" and "refreshInterval:5000" in DataSources to let them automatically refresh the records of datasource instead of manually calling "read" method of datasource.
ADMIN
Telerik Admin
Posted on: 16 May 2014 13:58
Guys, note that we already support SignalR and Web Sockets binding with the data source:
http://demos.telerik.com/kendo-ui/web/grid/signalr.html
http://demos.telerik.com/kendo-ui/web/grid/web-socket.html

Does this cover what you request as automatic polling/refresh in this thread?
Iman
Posted on: 17 Apr 2014 14:26
really nice idea , I do it manually and wast many times.
Alex Rogers
Posted on: 01 Jun 2012 20:07
Did this ever get into the Datasource?  It would be extremely useful to me at the moment.
Alex
Dave
Posted on: 13 May 2012 19:32
I'd like to see the datasource components be able to respond to the CouchDB _changes feed, so that any relevant updates to the serverside data can be propagated back into the kendoui datasource.

http://guide.couchdb.org/draft/notifications.html and http://wiki.apache.org/couchdb/HTTP_database_API#Changes
Imported User
Posted on: 30 Mar 2012 21:10
+1 for idea to have signalr integration
Christian
Posted on: 09 Jan 2012 22:07
It rather crude:

pollingTimer = window.setInterval(triggerFilters, $("#pollingInterval").val() * 1000);
	              	
function triggerFilters() {
    grid.dataSource.page(1);
    grid.dataSource.filter([{ field: "logLevel", operation: "eq", value: filterValue },
              	                    	{ field: "_all", operation: "eq", value: $("#searchFilter").val()}]);
		    
}

Can be stopped again using:

window.clearInterval(pollingTimer);
Shawn
Posted on: 07 Jan 2012 08:20
Could you post what you did with your filter implementation?
Imported User
Posted on: 01 Dec 2011 18:04
this could be accomplished via support for SignalR https://github.com/SignalR/SignalR
Christian
Posted on: 05 Oct 2011 09:10
Exactly. Currently I have implemented my own that calls the filter method at a specific interval. I use with a grid that displays log entries.