Avoiding mousewheel scrolling on ComboBox located inside DataGridTemplateColumn

Posted by: Swapnil.Walwadkar on 13 June 2023, 7:50 pm EST

  • Posted 13 June 2023, 7:50 pm EST - Updated 13 June 2023, 7:55 pm EST

    We are facing one issue and need your support on the same.

    We have a C1DataGrid and inside that we have DataGridTemplateColumn. To that column, we have a ComboBox. Below is the screenshot of xaml. (Image1.png).

    when the user changes the value from the dropdown we get our task done correctly on the selection changed event. (Image2.png)

    Our issue is when the user scrolls the mouse wheel on ComboBox, the value in ComboBox changes which we don’t want to happen.

    We are not able to handle the MouseWheel event for ComboBox as it is giving compile time error of using EventSetter. We also tried creating EventSetter under style but its associated Handler is not getting fired.

    Could you please guide us on how to avoid mouse wheel scrolling on ComboBox located inside DataGridTemplateColumn?

  • Posted 14 June 2023, 9:26 pm EST

    Hi Swapnil,

    Unfortunately, we could not replicate the issue on our end. We have attached a sample application for your reference. Please check DatagridCmbBoxTemplate.zip

    We request you share the updated version of the attached sample or provide a stripped-down version of the sample application that replicates the issue on your end. This will help us analyze the issue better and provide you with a more specific solution for this issue. In addition to this, please confirm that you are working with the latest version of C1 controls.

    Thanks & Regards,

    Aastha

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels