New to Kendo UI for jQueryStart a free 30-day trial

OfflineStorage

configuration

The offline storage key or custom offline storage implementation.

offlineStorage

String|Object
<script>
var dataSource = new kendo.data.DataSource({
    offlineStorage: "products-offline",
    transport: {
        read: {
            url: "https://demos.telerik.com/service/v2/core/products"
        }
    }
});
</script>
<script>
var dataSource = new kendo.data.DataSource({
    // use sessionStorage instead of localStorage
    offlineStorage: {
        getItem: function() {
            return JSON.parse(sessionStorage.getItem("products-key"));
        },
        setItem: function(item) {
            sessionStorage.setItem("products-key", JSON.stringify(item));
        }
    },
    transport: {
        read: {
            url: "https://demos.telerik.com/service/v2/core/products"
        }
    }
});
</script>
Not finding the help you need?
Contact Support