Apr 26, 2012, 2:52 PM
[CLOSED] Read-Only SelectBox where keystrokes are ignored
Is it possible to have a read-only SelectBox where all keystrokes are ignored?
In the following simple example, if I place my mouse in the SelectBox and press the "Page Up" or "Page Down" key the selected item changes. Similarly if I type the first letter of one of the items, the selected item changes. I know I could probably set the SelectBox to disabled, but that would gray out the control which I'd like to avoid.
thanks
In the following simple example, if I place my mouse in the SelectBox and press the "Page Up" or "Page Down" key the selected item changes. Similarly if I type the first letter of one of the items, the selected item changes. I know I could probably set the SelectBox to disabled, but that would gray out the control which I'd like to avoid.
thanks
<ext:SelectBox ID="lstTest" runat="server" ReadOnly="true" >
<Items>
<ext:ListItem Value="1" Text="One" />
<ext:ListItem Value="2" Text="Two" />
<ext:ListItem Value="3" Text="Three" />
<ext:ListItem Value="4" Text="Four" />
<ext:ListItem Value="5" Text="Five" />
<ext:ListItem Value="6" Text="Six" />
<ext:ListItem Value="7" Text="Seven" />
<ext:ListItem Value="8" Text="Eight" />
</Items>
</ext:SelectBox>
Last edited by Daniil; Apr 26, 2012 at 8:21 PM.
Reason: [CLOSED]