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

DropDownStyle = DropDownList still shows cursor?

12 Answers 200 Views
ComboBox and ListBox (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Johan
Top achievements
Rank 1
Johan asked on 17 Jul 2008, 01:02 PM
Hello,

I want to use a non-editable combo box in my user interface. Setting DropDownStyle to DropDownList almost does this for me except that I can still see a edit cursor when I press the mousebutton inside the combobox. Is there any way to get a win-control behaviour where there never is any edit cursor?

Johan

12 Answers, 1 is accepted

Sort by
0
Dimitar Kapitanov
Telerik team
answered on 21 Jul 2008, 08:58 AM
Hello Johan,

We are investigating the issue, but at the moment we are unable to find a general and stable solution that works out of the box in all cases. What we can suggest is that you try your own custom logic using the following Win API:

HideCaret - http://msdn.microsoft.com/en-us/library/ms648403(VS.85).aspx

and

ShowCaret - http://msdn.microsoft.com/en-us/library/ms648406(VS.85).aspx


Sincerely yours,
Dimitar Kapitanov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Stefan Berkmiller
Top achievements
Rank 1
answered on 12 Dec 2008, 03:03 PM
Hello Telerik team,

In my opinion "ordinary" cursorless DropDownLists are a frequent requirement in software applications.

Our UI needs dozens of those comboboxes. But the Telerik Combox looks a bit confusing. The user gets a cursor but cannot edit the value. We're not very happy with that at the moment and think about falling back to the old fashioned Windows Forms combobox.

Are there concrete plans to enhance the Telerik Combobox to support "ordinary" DropDownList behavior in the next release? We'd need it desperately ;).

Cheers,
STB
0
Nick
Telerik team
answered on 15 Dec 2008, 11:57 AM
Hi Stefan Berkmiller,

Thank you for the feedback.

We have initiated an extensive research to find how we differ from the standard controls so that we can address all inconsistencies. We realize that although our controls cover nearly 100% of the functionality the standard controls offer, there are still some differences we need to work out. The current case is one of them.

We will consider improving the current behavior, because it is indeed misleading. Hopefully you will see the improvements as soon as Q1 2009.

Do not hesitate to write me back if you have more questions.

 
Greetings,
Nick
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Tim
Top achievements
Rank 1
answered on 03 Jun 2009, 05:46 PM
Hello,

I have also run into the same problem. I've tried the using the "HideCaret" function from user32.dll, but still no luck.

Has there been any progress in the arena?

Thanks,
Tim
0
Nick
Telerik team
answered on 08 Jun 2009, 04:20 PM
 Hello Tim, guys,

To our regret, our aggressive schedule for Q1 2009 did not permit us to address this issue. I have raised the priority of this, as the interest in this bug fix seems to be picking up.

We are moving towards Q2 2009, and we will try to include this functionality there.
 

Best wishes,
Nick
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Troy
Top achievements
Rank 1
answered on 21 Sep 2009, 04:58 PM
Any more on this "feature?" I coudn't agree more with the comments in this thread. It is beyond confusing and might be better described as appearsing broken. This control, or state, is probably one of the most commonly used controls in an application and we as well might not adoopt the toolset if we can't get basic standards implemented. 

Any hacks workarounds in the meantime are welcome.

Thanks,

Troy 
0
Nikolay
Telerik team
answered on 24 Sep 2009, 11:44 AM
Hello Troy,

Thank you for the feedback. I have raised the priority of the RadComboBox issue when it is in DropDownList mode.

Until the issue is addessed, please consider using the following code snippet:
[DllImport("User32.dll")]  
static extern Boolean HideCaret(System.IntPtr hWnd);  
 
public Form1()  
{  
    InitializeComponent();  
 
    ((HostedTextBoxBase)this.radComboBox1.ComboBoxElement.TextBoxElement.TextBoxItem.HostedControl).MouseEnter +=new EventHandler(Form1_MouseEnter);  
    this.radComboBox1.GotFocus += new EventHandler(radComboBox1_GotFocus);  
}  
 
void Form1_MouseEnter(object sender, EventArgs e)  
{  
    ((TextBox)this.radComboBox1.ComboBoxElement.TextBoxElement.TextBoxItem.HostedControl).Cursor = Cursors.Arrow;  
}  
 
void radComboBox1_GotFocus(object sender, EventArgs e)  
{  
    HideCaret(((TextBox)this.radComboBox1.ComboBoxElement.TextBoxElement.TextBoxItem.HostedControl).Handle);  

As you can see, I am hinding the caret of the TextBox that RadComboBox hosts and I am changing the mouse cursor to a normal arrow when the mouse pointer is over the hosted TextBox.

I hope this helps. If you have additional questions, feel free to contact me.

Kind regards,
Nikolay
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Troy
Top achievements
Rank 1
answered on 24 Sep 2009, 09:09 PM
Hello Nikolay -

Your solution works well.  Looking forward to the enhancement.

Thanks,

Troy
0
Mark McGraw
Top achievements
Rank 1
answered on 22 Nov 2009, 11:16 PM
Telerik,

Is there a recent update for this issue? This item was originally slated for Q1 2009 (it was first mentioned in 2008). The suggested "solution" which uses HideCaret() is not acceptable.

Thanks,

M
0
Nikolay
Telerik team
answered on 25 Nov 2009, 04:13 PM
Hello Mark McGraw,

The issue discussed in this thread will be addressed in Q3 2009 SP1 which will be released in the beginning of December.

Best wishes,
Nikolay
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
michael mccurrey
Top achievements
Rank 1
answered on 16 Mar 2010, 10:19 PM
Any word on this one yet?  This is needed in MultiColumnComboBox as well
0
Nikolay
Telerik team
answered on 22 Mar 2010, 02:59 PM
Hello michael mccurrey,

There is no cursor in RadMultiColumnComboBox when DropDownStyle = DropDownList in Q1 2010. I would recommend you to update to this latest version if you have not done it so far. If you have additional questions, feel free to contact me.

Best wishes,
Nikolay
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
ComboBox and ListBox (obsolete as of Q2 2010)
Asked by
Johan
Top achievements
Rank 1
Answers by
Dimitar Kapitanov
Telerik team
Stefan Berkmiller
Top achievements
Rank 1
Nick
Telerik team
Tim
Top achievements
Rank 1
Troy
Top achievements
Rank 1
Nikolay
Telerik team
Mark McGraw
Top achievements
Rank 1
michael mccurrey
Top achievements
Rank 1
Share this question
or