This is a migrated thread and some comments may be shown as answers.

How to stop post back on clientblur

3 Answers 56 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 10 Oct 2008, 04:46 PM
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?

3 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 13 Oct 2008, 12:13 PM
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.
0
oVan
Top achievements
Rank 2
answered on 21 Oct 2008, 08:24 AM
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.
0
Yana
Telerik team
answered on 23 Oct 2008, 08:24 AM
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.
Tags
ComboBox
Asked by
David
Top achievements
Rank 1
Answers by
Yana
Telerik team
oVan
Top achievements
Rank 2
Share this question
or