Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
395
How can smartSubmit( ) events be disabled on grids and charts?
posted

Hi, How can I Disable javascript smartSubmit( ) event on grids and charts ?

Basically there should be no submit events triggered when user clicks

 anywhere on page other than on a Command Button.

Thanks

 

  • 19693
    Suggested Answer
    posted

    Hello ,

     

    You can add this script on the page :

    <script type="text/javascript">

        smartRefreshSupport = false;

    </script>

    Also regarding the grid you can use the ajaxRequesting client event :

    <ig:gridClientEvents ajaxRequesting="ajaxRequesting"></ig:gridClientEvents>

    And in its implementation you should cancel the event :

    <script type="text/javascript">
         function ajaxRequesting (sender , args){        
              args.set_cancel(true);
         }

    </script>

    Hope this helps.

    Sincerely,

    Tsvetelina