Combobox Dropdown in TabPage

4 posts, 1 answers
  1. ManniAT
    ManniAT avatar
    877 posts
    Member since:
    Nov 2003

    Posted 12 Jun 2008 Link to this post

    Hi,

    I found there is a (I think) similar thread here - but the answer is "find the information in you support ticket" - which does not really help.

    My problem:
    I have a ComboBox in Radtabstrip.
    As usual (custumer employees are used to it - me too) I try to open the CB-list by pressing ALT+DOWN.
    What happens?
    Tabstrip switches to another page.

    I found no setting for "no keyboard nav in tabstrip" or so.

    Althoug the setting should be:
    Use the well know windos keys for Pagenavigation and keep away the fingers from other predifined key settings :)

    What do I mean?
    How do you navigate on default windows Tabpages?
    CTRL+TAB forward - or CTRL+SHIFT+TAB backwards.
    And whatfore ist ALT+DOWN? Yes to open a combobox list.

    Anyhow - my problem - I built the app on your control and now I have to implement "default windows behaviour".

    So how do I
    a.) Disable ALT+DOWN on the tabcontrol so that I can use ist for Comoblist?
    b.) How do I change pagenavi to CTRL+TAB (SHIFT+CTRL+TAB)

    The first is most important because my customers employees use this combination very often; which means my programm is not usable at the moment for them.

    Regards

    Manfred
  2. Answer
    Martin Vasilev
    Admin
    Martin Vasilev avatar
    1061 posts

    Posted 13 Jun 2008 Link to this post

    Hello Manfred Pohler,

    Thank you for writing.

    You could disable the default system keys behavior by using the code block below:
    this.radTabStrip1.ProcessKeyboard = false

    After this, you could use the KeyPress events of RadTabStrip to implement your own keyboard tab changing logic:
    private void radTabStrip1_KeyDown(object sender, KeyEventArgs e) 
        if (e.KeyCode == Keys.Tab && e.Control && e.Shift) 
        { 
            this.radTabStrip1.SelectNextItem((RadItem)this.radTabStrip1.SelectedTab, false); 
             
        } 
        else if (e.KeyCode ==  Keys.Tab && e.Control) 
        { 
            this.radTabStrip1.SelectNextItem((RadItem)this.radTabStrip1.SelectedTab, true); 
        } 

    The disadvantage of using the key event is that the focus should be on the tab item. In all other cases, it will not work (for example if you are in some editor belonging to the tab ContentPanel). I am thinking, there is better approach by using commands, but it will take me more time to research. Please let me know if you are interested in it and I will try to implement such a scenario.

    If you have other questions, do not hesitate to contact me again.

    Regards,
    Martin Vasilev
    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. ManniAT
    ManniAT avatar
    877 posts
    Member since:
    Nov 2003

    Posted 13 Jun 2008 Link to this post

    Hi,

    thanks for the help - at least I could make my Comboboxes work like default controls do.

    Since the solution about CTRL+TAB seems to be a bit more extensive (most of the time we are on some editor in content panel - thats normal) I won't implement this.

    BUT - I still think you (Telerik) should try to keep as close as possibel to windows behaviuors.

    So why change CTRL+TAB / CTRL+SHIFT+TAB to something "strange" interfearing with default KB-combinations AND remove the default combination instead.

    Of course not everyone is familar with the windos shortcuts.
    But there are people out there which are.

    And the thing you did here is something like:
    Keydown move the selection UP in a listbox :)
    And ALT+F4 selects the first element :)

    Just kidding of course - but the thing is more ore less the same.
    The expected reaction to a keystroke does something differnt.
    And the defaul keystrokes do not work.

    I guess there is some reson for doing this - but then a flag like "UseDefaultShortcuts" should be implemented.

    Regards

    Manfred
  5. Martin Vasilev
    Admin
    Martin Vasilev avatar
    1061 posts

    Posted 16 Jun 2008 Link to this post

    Hello Manfred Pohler,

    Thank you for getting back to me.

    We highly appreciate your suggestion. We will consider your remarks and address it in one of our future releases.

    Your Telerik points have been updated. If you have other questions, do not hesitate to contact me again.

    Best wishes,
    Martin Vasilev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top