3 Answers, 1 is accepted
0
Hello Jako,
This question has been posted in the UI For ASP.NET MVC forums, so I would assume that you are referring to the Kendo UI Grid, as RadGrid is part of the UI For ASP.NET AJAX. Basically, enabling this feature is done by setting the offlineStorage option, as described in the following article: Here is a live demo of the offline DataSource feature, which can be easily implemented in ASP.NET MVC using the OfflineStorage option, for example:
Regards,
Alexander Popov
Telerik
This question has been posted in the UI For ASP.NET MVC forums, so I would assume that you are referring to the Kendo UI Grid, as RadGrid is part of the UI For ASP.NET AJAX. Basically, enabling this feature is done by setting the offlineStorage option, as described in the following article: Here is a live demo of the offline DataSource feature, which can be easily implemented in ASP.NET MVC using the OfflineStorage option, for example:
@(Html.Kendo().Grid<ViewModel>()
.Name(
"Grid"
)
.Columns(columns =>
{
columns.Bound(....)
})
.DataSource(dataSource => dataSource
.Ajax()
.OfflineStorage(
"offline-kendo-demo"
)
Regards,
Alexander Popov
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
0

Quickstoker
Top achievements
Rank 2
answered on 30 Jul 2015, 12:44 AM
Hi,
In your example, how you can set the grid offline explicitly? Your code only specify the offlline store in the grid's Data Source but where you set when the grid go offline after it load the first time for example?
0
Hello,
You can set the Grid's AutoBind option to false to prevent the initial Read request. Then, after the Grid is initialized - set the DataSource's offline mode to true. For example:
Regards,
Alexander Popov
Telerik
You can set the Grid's AutoBind option to false to prevent the initial Read request. Then, after the Grid is initialized - set the DataSource's offline mode to true. For example:
@(Html.Kendo().Grid<ViewModel>()
.Name(
"Grid"
)
.AutoBind(
false
)
.DataSource(dataSource => dataSource
.Ajax()
.OfflineStorage(
"offline-kendo-demo"
)
...
)
<script>
$(document).ready(
function
() {
var
grid = $(
"#Grid"
).data(
"kendoGrid"
);
grid.dataSource.online(
false
);
});
</script>
Regards,
Alexander Popov
Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items