Skip to end of metadata
Go to start of metadata

This walkthrough will show you how to use OnEditKeyDown client side event.

In this topic, you will learn the basic thing on how to validate input (number only) in a cell using OnEditKeyDown.

To validate input (number only) in a cell using OnEditKeyDown

  1. Select WebGrid's instance and press F4.
  2. In Layout Settings, select ClientSideEvents, then set OnEditKeyDown to WebGrid1_OnEditKeyDown.
  3. Write the following function in OnEditKeyDown client side event:

    JavaScript
  4. Run the project.