Best way to port code from a Windows combobox?

2 posts, 0 answers
  1. Michael
    Michael avatar
    1 posts
    Member since:
    Aug 2012

    Posted 30 Aug 2012 Link to this post

    I'm trying to get some standard Winforms code moved over to use the Telerik library. It's hard to figure out how to move over standard combobox code. In my standard combobox code, I could simply handle the "SelectedValueChanged" event. This event is only fired when the user actually selects a value (i.e. clicks or presses 'Enter'), even in auto-complete mode.

    For the Telerik "RadDropDownList", the "SelectedValueChanged" event fires every time the user moves the cursor down a list of matching items. To me, this seems wrong. The selected value is not changed yet, not until the user presses 'Enter' or clicks the mouse on a particular item. Nevertheless, right or wrong, is there an optimal way to make a "RadDropDownList" work like a combobox? I really won't want to write hundreds of lines of code to handle every variation of key and mouse clicks to try and figure out what the user is doing.

    More generally, is there any guide or cookbook that shows a person what is involved with changing each type of standard Windows control over to the corresponding Telerik control? This would be really useful. It took me an entire day to figure out that a Telerik "RadSplitButton" isn't really a true split button (i.e the same functionality as a button and a drop-down menu button), but is more simplistic, sort of a "menu item button". The best way to port code from Windows split buttons to Telerik without losing functionality is to use a separate RadButton and a separate RadDropDownButton. Some sort of guide book would be immensely helpful.

    Thanks.
  2. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 04 Sep 2012 Link to this post

    Hello Michael,

    Thank you for writing.

    The observed behavior is the default behavior of RadDropDownList and currently it cannot be changed. If you share with us the exact scenario that you are after, we will be happy to help you achieve is by using RadDropDownList.

    We do not offer any guidance on transferring the standard controls to RadControls. There are numerous cases with every control and covering them in a guide book is not an easy task. We are trying to keep our controls behavior and API as close as we can to the standard controls in order to make is easier for the users to accommodate RadControls in their applications. However this cannot be achieved in all scenarios. If you have any difficulties achieving some scenario, feel free to contact us and we will help you with it.

    I hope that then provided information addresses your question.

    Regards,

    Peter
    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top