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

autopostback selection only

1 Answer 47 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
jrit
Top achievements
Rank 1
jrit asked on 09 Oct 2008, 12:33 AM
I would like to do an autopostback when an item is selected from the combobox, but if text is entered without making a selection then I don't want it to post back. A solution would be greatly appreciated.

1 Answer, 1 is accepted

Sort by
0
Accepted
Rosi
Telerik team
answered on 09 Oct 2008, 05:30 AM
Hi ,

To do this you can do the following steps:

1.Set the AutoPostBack property to true.
2.Hook on the OnClientTextChange event of RadComboBox and execute the following code in its event handler:
function OnClientTextChange(sender,e)
{

         e.set_cancel(true);

}

Regards,
Rosi
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
ComboBox
Asked by
jrit
Top achievements
Rank 1
Answers by
Rosi
Telerik team
Share this question
or