Mouse action to change the view

4 posts, 1 answers
  1. Patrick
    Patrick avatar
    498 posts
    Member since:
    Aug 2012

    Posted 26 Jun Link to this post

    Hello,

    In the Windows Explorer, you can change the view using Ctrl+Mouse Wheel.

    Your file dialogs should do the same.

  2. Answer
    Dinko
    Admin
    Dinko avatar
    1183 posts

    Posted 01 Jul Link to this post

    Hi Patrick,

    There is a logged a feature request to implement such keyboard navigation in our FileDialogs. I have updated the feedback item to include this one. 

    As a workaround: You can achieve this behavior using custom code. You can subscribe to the PreviewMouseWheel event of the control. In the event handler, you can check the current wheel direction and change the selected item of the layout configurator RadComboBox control. The following code snippet demonstrate what I have in mind.

    private void SaveFileDialog_PreviewMouseWheel(object sender, MouseWheelEventArgs e)
    {
        if(Keyboard.IsKeyDown(Key.LeftCtrl))
        {
            RadSaveFileDialog radsaveFileDialog = sender as RadSaveFileDialog;
            RadComboBox layOutComboBox = radsaveFileDialog.ChildrenOfType<RadComboBox>().FirstOrDefault(x=>x.Name == "PART_LayoutConfigurator");
            if(e.Delta >0)
            {
                if (layOutComboBox.SelectedIndex != layOutComboBox.Items.Count-1)
                {
                    layOutComboBox.SelectedIndex = layOutComboBox.SelectedIndex + 1;
                }
            }
            else
            { 
                if (layOutComboBox.SelectedIndex != 0)
                {
                    layOutComboBox.SelectedIndex = layOutComboBox.SelectedIndex - 1;
                }
            }            
            e.Handled = true;
        }
    }

    Regards,
    Dinko
    Progress Telerik

    Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
    Our thoughts here at Progress are with those affected by the outbreak.
  3. Patrick
    Patrick avatar
    498 posts
    Member since:
    Aug 2012

    Posted 07 Jul in reply to Dinko Link to this post

    Hi Dinko,
    It works, but I really think that it must work "out-of-the-box", without these kind of patches.
  4. Dinko
    Admin
    Dinko avatar
    1183 posts

    Posted 07 Jul Link to this post

    Hello Patrick,

    You are right that this will be a good improvement to the control. I have already increased its priority so that our developers can consider its implementation.

    If you have any other questions, you can open a new thread with your inquiries inside.

    Regards,
    Dinko
    Progress Telerik

    Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
    Our thoughts here at Progress are with those affected by the outbreak.
Back to Top