DropDownStyle = DropDownList still shows cursor?

13 posts, 0 answers
  1. Johan
    Johan avatar
    11 posts
    Member since:
    Mar 2008

    Posted 17 Jul 2008 Link to this post

    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
  2. Dimitar Kapitanov
    Admin
    Dimitar Kapitanov avatar
    632 posts

    Posted 21 Jul 2008 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Stefan Berkmiller
    Stefan Berkmiller avatar
    6 posts
    Member since:
    Nov 2008

    Posted 12 Dec 2008 Link to this post

    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
  5. Nick
    Admin
    Nick avatar
    767 posts

    Posted 15 Dec 2008 Link to this post

    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.
  6. Tim
    Tim avatar
    6 posts
    Member since:
    Jul 2008

    Posted 03 Jun 2009 Link to this post

    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
  7. Nick
    Admin
    Nick avatar
    767 posts

    Posted 08 Jun 2009 Link to this post

     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.
  8. Troy
    Troy avatar
    6 posts
    Member since:
    Oct 2007

    Posted 21 Sep 2009 Link to this post

    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 
  9. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 24 Sep 2009 Link to this post

    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.
  10. Troy
    Troy avatar
    6 posts
    Member since:
    Oct 2007

    Posted 24 Sep 2009 Link to this post

    Hello Nikolay -

    Your solution works well.  Looking forward to the enhancement.

    Thanks,

    Troy
  11. Mark McGraw
    Mark McGraw avatar
    1 posts
    Member since:
    Nov 2009

    Posted 22 Nov 2009 Link to this post

    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
  12. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 25 Nov 2009 Link to this post

    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.
  13. michael mccurrey
    michael mccurrey avatar
    6 posts
    Member since:
    May 2008

    Posted 16 Mar 2010 Link to this post

    Any word on this one yet?  This is needed in MultiColumnComboBox as well
  14. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 22 Mar 2010 Link to this post

    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.
Back to Top
UI for WinForms is Visual Studio 2017 Ready