Feb 16, 2013, 8:42 PM
[CLOSED] Prevent AutoPostback
Hello,
I am using a combobox in a form panel, all rendered in a modal window. The window is hidden initially. Window is shown by a command in a grid. I want to prevent postback to server when user press 'Enter' key after selecting an item form the combobox. I tried AutoPostback = false on combobox but it still posts back. In other words, Page_Load is called and the configuration window disappears. What am I doing wrong?
I am using a combobox in a form panel, all rendered in a modal window. The window is hidden initially. Window is shown by a command in a grid. I want to prevent postback to server when user press 'Enter' key after selecting an item form the combobox. I tried AutoPostback = false on combobox but it still posts back. In other words, Page_Load is called and the configuration window disappears. What am I doing wrong?
<ext:ComboBox runat="server" ID="rolesCombo" StoreID="Store1" AutoPostBack="false" ValueField="ID" DisplayField="Name" QueryMode="Local" Editable="false" AllowBlank="true" EmptyText="Select..." MatchFieldWidth="true" MultiSelect="false" Margins="0 5 0 0" Flex="1">
<Listeners>
<Select Handler="selectHandler(item,records);"></Select>
</Listeners>
</ext:ComboBox>
Thanks.
Last edited by Baidaly; Feb 17, 2013 at 11:42 PM.
Reason: [CLOSED]