Immediate Action on Checkbox Click

2 posts, 0 answers
  1. Pixie
    Pixie avatar
    5 posts
    Member since:
    May 2013

    Posted 16 Jun 2019 Link to this post

    I have a gridview with a checkbox column. When the checkbox is checked, I would like to immediately perform some validation and cancel the check if the validation fails. I would like this to happen immediately and not when the user leaves the cell. 

    I have set the editmode of the column to onvaluechange and now the CellValueChanged event fires as soon as the checkbox is checked. I can perform validation there and show a messagebox immediately if the validation fails. However if I uncheck the textbox from the CellValueChanged event, it doesn't take affect until the user leaves the cell.

    I've tried using the CellValidation event but it doesn't fire until the user leaves the cell. 

    How can I uncheck the checkbox and have it take effect immediately, without the user having the leave the cell?

  2. Dess | Tech Support Engineer, Sr.
    Dess | Tech Support Engineer, Sr.  avatar
    3988 posts

    Posted 19 Jun 2019 Link to this post

    Hello, Pixie,

    Your question has already been answered in the other thread you have posted on the same topic. Please, see our answer there for more information.

    We kindly ask you to use just one thread for a specific problem to contact us. Posting the same questions numerous times slows down our response time because we will need to review and address two or more tickets instead of one. Moreover, threads are handled according to license and time of posting, so if it is an urgent problem, we suggest you use a support ticket, which would be handled before a forum thread.

    Thank you for your understanding.

    Dess | Tech Support Engineer, Sr.
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top