This question is locked. New answers and comments are not allowed.
Hello
I have implemented the Telerik MVC Grid and I need to make sure the displayed data is always updated. Currently I use the following javascript:
<script type="text/javascript">
$(function () {
setInterval(function () {
$('#Grid').data('tGrid').ajaxRequest();
}, 10000);
});
</script>
The problem with this is that when a user try to modify or insert new records they have at most 10 seconds to do so before the grid refreshes. Is there a way to disable this javascript when in editmode or maybe there is an alternative solution to what I am trying to do?
I have implemented the Telerik MVC Grid and I need to make sure the displayed data is always updated. Currently I use the following javascript:
<script type="text/javascript">
$(function () {
setInterval(function () {
$('#Grid').data('tGrid').ajaxRequest();
}, 10000);
});
</script>
The problem with this is that when a user try to modify or insert new records they have at most 10 seconds to do so before the grid refreshes. Is there a way to disable this javascript when in editmode or maybe there is an alternative solution to what I am trying to do?