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

[Solved] Disable Refresh in Edit Mode?

0 Answers 24 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Christian
Top achievements
Rank 1
Christian asked on 04 May 2012, 03:46 PM
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?
Tags
Grid
Asked by
Christian
Top achievements
Rank 1
Share this question
or