PDA

View Full Version : [CLOSED] combobox editable=false without cursor



supera
Dec 10, 2012, 10:38 AM

RCN
Dec 10, 2012, 10:48 AM
Please let me know whether the following example helps you



<!DOCTYPE html>
<html>
<head runat="server">
<style type="text/css">
.changeCursor .x-trigger-noedit
{
cursor: default !important;
}
</style>
</head>
<body>
<ext:ResourceManager runat="server" />
<ext:ComboBox Editable="false" Cls="changeCursor" runat="server">
<Items>
<ext:ListItem Text="ext" />
<ext:ListItem Text="net" />
<ext:ListItem Text="ext.net" />
</Items>
</ext:ComboBox>
</body>
</html>

supera
Dec 10, 2012, 11:15 AM

RCN
Dec 10, 2012, 11:34 AM
In the following example the cursor is hidden when the mouse is over the ComboBox's TextBox


<!DOCTYPE html>
<html>
<head id="Head1" runat="server">
<style type="text/css">
.changeCursor .x-trigger-noedit
{
cursor: none !important;
}
</style>
</head>
<body>
<ext:ResourceManager ID="ResourceManager1" runat="server" />
<ext:ComboBox ID="ComboBox1" Editable="false" Cls="changeCursor" runat="server">
<Items>
<ext:ListItem Text="ext" />
<ext:ListItem Text="net" />
<ext:ListItem Text="ext.net" />
</Items>
</ext:ComboBox>
</body>
</html>


If this is not your case, please specify in which region(s) you want to hide the icon

supera
Dec 13, 2012, 11:19 AM

Daniil
Dec 13, 2012, 11:37 AM
Hi everybody,

Well, not editable ComboBox is still focusable.

I doubt there is a good way to prevent focusing, but, maybe, you could blur it after focusing. Something like:

Example

<Focus Handler="if (!this.editable) {
this.blur();
}"
Delay="100" />

supera
Dec 13, 2012, 11:56 AM
Hi Daniil!

I wish (my boss want, in really) that the component get the focus because the user needs select a value in a list... only hide the text cursor

But, not a problem... forget it... thanks a lot.

Daniil
Dec 13, 2012, 12:20 PM
Please clarify did you try my suggestion? Seems it behaves as you need.

supera
Dec 13, 2012, 2:35 PM
Hi Daniil!!!!

I tryed follow your suggestion... when i click in combobox field, the text cursor still blinking (and I wish hide this cursor).
I made this in listener 'focus', in client side.

But, not a problem!!! Sorry boring you with this minim thing!!!

Daniil
Dec 13, 2012, 2:36 PM
We would be happy to investigate a sample if you could provide.

osef
May 03, 2013, 11:32 PM
I'm sorry, this post is bad.

Daniil
Mar 06, 2014, 5:49 PM
Here is a related thread with a possible solution.
http://forums.ext.net/showthread.php?28711