C1FlexGrid Multiline Edit Add Newlines with C1TextBox Editor Broken

Posted by: gregg on 10 October 2018, 8:05 pm EST

    • Post Options:
    • Link

    Posted 10 October 2018, 8:05 pm EST

    Attached a sample project that demonstrators bug with C1TextBox when being used as a multi-line input editor on a C1FlexGrid.

    When used by itself outside of the C1FlexGrid one may press in the C1TextBox control to add new lines at the caret. However, when pressing in C1FlexGrid column with the C1TextBox control editor it ends editing. Using a TextBox control in the C1FlexGrid works as expected and adds new lines at the caret within the grid as one is editing.

    In the sample project there is a C1FlexGrid with two column editors. Column 1 is a TextBox control and column 2 is a C1TextBox control. Also there is a C1TextBox control independent from the C1FlexGrid. works as expected for all but column 2 of the grid.

    Can someone please advise on workaround or provide a fix with the C1Input.C1TextBox control for multi-line edit within a C1FlexGrid control?

    Prj_ScrollbarsInCell.zip

  • Posted 11 October 2018, 11:45 am EST

    Thank you for your quick response Mohitg. I will look forward to a fix from your development team.

    I appreciate the information about the work around but I will not use it at this time since I don’t want to have to explain different key strokes for different uses of the control on forms to the end users. They won’t understand the nuance and it will be too confusing to them to know when to press vs. .

  • Posted 12 October 2018, 6:26 am EST

    Hello,

    I am able to reproduce the issue at our end. I have escalated the issue(Id 347700) to our development team and will inform you once I got any information from them. Also, as a workaround, you can use the “Ctrl” + “Enter” instead of “Shift” + “Enter” to have the desired result.

    Thanks,

  • Posted 12 October 2018, 6:27 am EST

    Hello Gregg,

    Sorry to mention that there is no another workaround for this issue.

    thanks,

  • Posted 13 October 2018, 5:38 pm EST - Updated 4 October 2022, 1:37 am EST

    No worries Mohitg. I will await a fix from your development team. I can test out any fixes they come up with.

    Thank you.

  • Posted 16 October 2018, 12:56 am EST

    Hi Gregg,

    While you’re waiting for a fix from the development team you can use this code as a workaround:

    private void C1txtBox_KeyDown(object sender, KeyEventArgs e)
    {
         if (e.Shift && e.KeyCode == Keys.Enter)
         {
               e.Handled = true;
               SendKeys.Send("\n");
               SendKeys.Flush();
         }
    }
    

    You can also find the modified sample in the attachments for your reference.

    Regards

    Prj_ScrollbarsInCell_Workaround.zip

  • Posted 16 October 2018, 1:20 am EST

    Hello,

    Thanks for the patience. Our development team is still working on this and I will revert you once I get reply from them.

    Regards

  • Posted 3 January 2019, 7:16 am EST

    Hello Gregg,

    We are happy to let you know that the issue is now fixed. Please use the following URL to download the latest builds: http://prerelease.componentone.com/dotnet40/C1WinForms/2018-T3/C1WinForms.4_4.0.20183.343.zip

    Thanks,

    Ruchir

Need extra support?

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

Learn More

Forum Channels