How to stop post back on clientblur

4 posts, 0 answers
  1. David
    David avatar
    6 posts
    Member since:
    Mar 2008

    Posted 10 Oct 2008 Link to this post

    Hi,

    I use to be able to stop auto postback for combobox on the OnClientBlur() method with eventArts.set_cancel(true), but the browse can't find that method anymore with the latest asp.net version released on 10/1/2008.  Anyways, I have a combobox that is on demand loading, I only want the combobox to postback when the user selects a value, or clicks enter, I have that working, except if a user uses the down arrow, has a value selected, then clicks off, the combobox still posts back.  I just need someway from the OnClientBlur() method to cancel post back.


    Any idea?
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 13 Oct 2008 Link to this post

    Hello David,

    I am not able to understand when this unwanted postback is happening, could you please send us a sample project illustrating the problem and steps to reproduce? You should open a support ticket to be able to attach files. Thanks

    All the best,
    Yana
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. oVan
    oVan avatar
    35 posts
    Member since:
    Apr 2008

    Posted 21 Oct 2008 Link to this post

    I have the same problem: open the combox with the mouse, use your keyboard arrows to go down to a specific line and then use your mouse to click outside the combox as if you want to cancel your selection.
    A postback is then fired and the selectedvalue is changed.
  5. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 23 Oct 2008 Link to this post

    Hello,

    Please check the attached sample project which shows the needed approach.

    Regards,
    Yana
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top