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
250
Stop KeyDown Event for stop delete key press to delete a row in Grid
posted

how to Stop KeyDown client side Event for stop delete key press to delete a row in Grid.

Parents
No Data
Reply
  • 7694
    posted

    Hello,

    You can use the  KeyDownHandler of ClientSideEvents tag and disable “Delete” key.

    Please take a look at the code below:
    <ClientSideEvents KeyDownHandler="Action" />
        <script type="text/javascript">
            function Action(gridID, cellID, key) {

                if (key == 46) {

                    return true;
                }

            }
        
        </script>

    Hope this helps.
     

Children