C1FlexGrid's CustomEditor sample shows popup on wrong screen

Posted by: hdle on 11 January 2024, 10:48 pm EST

    • Post Options:
    • Link

    Posted 11 January 2024, 10:48 pm EST

    When the main form is in the secondary monitor, the custom editor pop-up on the other (main) monitor instead. Is there a fix for this in the sample?

    Thanks,

    Hai Le

  • Posted 15 January 2024, 5:43 am EST

    Hello Hai Le,

    We are sorry, but we could not replicate the behavior on our end. Please refer to the attached GIF, PopupOnSecondaryScreen.zip.

    Could you please share your environment details, VS version, and the version of C1 controls you are using on your end so that we can test the behavior further?

    Regards,

    Uttkarsh.

  • Posted 15 January 2024, 12:49 pm EST

    Hi Uttkarsh,

    Thank you for the prompt reply. Sorry I used wrong terminology. The issue is not with the PopEdit editor, but the MultiColumn ones in the last two rows of that example.

    I am using VS 2019, C1FlxeGrid v 4.8.20233.631.

    Thanks,

    Hai

  • Posted 16 January 2024, 6:33 am EST

    Hello Hai,

    Thank you for bringing this matter to our attention.

    We were able to replicate the issue at our end, so we have escalated it to the development team. We will update you as soon as we get the necessary updates.

    [Internal Tracking ID: C1WIN-31562]

    Regards,

    Uttkarsh.

  • Posted 24 June 2024, 7:22 am EST

    Hello Hai,

    Apologies for the delayed response.

    We tried to locate the cause of the issue and found the following line of code in the void IWindowsFormsEditorService.DropDownControl() method of UITypeEditorControl.cs is causing the issue:

    if (pt.X < 0) pt.X = 0;						// check left

    It sets the location.X of the drop-down to 0 if the location.X is negative (in our case, the secondary monitor is on the left side of the primary monitor, so location.X is negative). We changed the above line of code to the following line of code so that the drop-down drops under the current cell:

    if (pt.X < rc.Left) pt.X = rc.Left;		// check left

    Please refer to the attached updated sample for the same. (see CustomEditors_Mod.zip)

    We are sorry, currently we do not have a ETA for the fix, but we’ll update you once the issue is fixed.

    Regards,

    Uttkarsh.

  • Posted 2 January 2025, 3:23 am EST

    Hello Hai,

    We’re glad to let you know that the issue has been fixed in the latest release of the control. Please upgrade your controls to the latest stable build (2024v2 688) / install the latest product samples to resolve the issue.

    Regards,

    Uttkarsh.

Need extra support?

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

Learn More

Forum Channels