Not able to trigger the Radbuttonclick event when an error occurs in rad gridview

3 posts, 0 answers
  1. sreelakshmi T
    sreelakshmi T avatar
    13 posts
    Member since:
    May 2010

    Posted 10 Dec 2011 Link to this post

    Hi All,

    I have a RadGrid and 5 Rad buttons in a page.

    i am validating the grid data in cellvalidating event.

    After an error comes in grid,all buttons click event is not fairing.

    even error comes i want to fire the buttonclick event of some buttons.

    Can any body sugest me a solution?

    Thanks in advance.
  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 12 Dec 2011 Link to this post

    Hello Sreelakshmi,

    That would be the expected behavior since RadGridView keeps the focus on any validation errors until they are corrected. What you can try is to set ActionOnLostFocus property to "None". Thus the value will not be committed and even though it is not correct, you will be able to click on an element outside the grid. 

    All the best,
    Maya
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. sreelakshmi T
    sreelakshmi T avatar
    13 posts
    Member since:
    May 2010

    Posted 12 Dec 2011 Link to this post

    Hi Maya,

    if i set ActionOnLostFocus property to "None" its allowing me to click on other Buttonsin the page.But in my case is i want allow some buttons not all the buttons.

    is there any solution for this?

    Thanks And Regards,
    Sreelakshmi.
Back to Top