Completed
Last Updated: 25 Dec 2019 10:26 by ADMIN
ADMIN
Dess | Tech Support Engineer, Principal
Created on: 31 Jul 2018 12:30
Category: UI for WinForms
Type: Bug Report
2
FIX. RadChat - when you make the InputTextBox multiline its height gets huge and the send button disappears from the box
Workaround:

            this.radChat1.ChatElement.InputTextBox.TextBoxItem.TextBoxControl.Multiline = true;
            this.radChat1.ChatElement.InputTextBox.ButtonsStack.Children.Remove(this.radChat1.ChatElement.ShowToolbarButtonElement);
            this.radChat1.ChatElement.InputTextBox.ButtonsStack.Children.Remove(this.radChat1.ChatElement.SendButtonElement);
            StackLayoutElement stack = new StackLayoutElement();
            stack.MinSize = new Size(0, 60);
            this.radChat1.ChatElement.InputTextBox.Parent.Children.Add(stack);
            this.radChat1.ChatElement.InputTextBox.Parent.Children.Remove(this.radChat1.ChatElement.InputTextBox);
            stack.StretchHorizontally = true;
            stack.Orientation = Orientation.Horizontal;
            stack.Children.Add(this.radChat1.ChatElement.InputTextBox);
            stack.Children.Add(this.radChat1.ChatElement.ShowToolbarButtonElement);
            stack.Children.Add(this.radChat1.ChatElement.SendButtonElement);
            this.radChat1.ChatElement.ShowToolbarButtonElement.StretchHorizontally = false;
            this.radChat1.ChatElement.SendButtonElement.StretchHorizontally = false;
4 comments
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 25 Dec 2019 10:26
Hello, Ali,     

The fix for the issue was released in 2018.3.911 version. Note that as it was explained in the previous reply, in order to enter multi-line text, enter some text, press Ctrl+Enter (not Shift+Enter) and a new line will be inserted.

However, if you are still experiencing any further difficulties, it would be greatly appreciated if you can provide a sample project demonstrating the undesired behavior that you are facing. Thus, we would be able to investigate the precise case and assist you further. Thank you in advance for you cooperation.

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Happy Holidays

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Ali
Posted on: 25 Dec 2019 10:06
Hello,

Using Telerik for winforms (Version 2018.3), The multiline feature is not working for me.

While I've set 
                ChatObject.ChatElement.InputTextBox.TextBoxItem.TextBoxControl.Multiline = true;
                ChatObject.ChatElement.InputTextBox.TextBoxItem.TextBoxControl.AcceptsReturn =false;
the combination of Shift+Enter does not work in my program.

Is the problem related to the version I am using and will be solved by upgrading , or I've missed to implement something?
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 25 Apr 2019 08:43
Hello, Marcelo,    

Since the issue has already been resolved, you just need to set the ChatElement.InputTextBox.TextBoxItem.TextBoxControl.Multiline property to true without the rest of the code snippet provided in the workaround. 

In order to enter multi-line text, enter some text, press Ctrl+Enter and a new line will be inserted. Please refer to the attached gif file illustrating the behavior on my end with the latest version. Am I missing something? Could you please specify the exact steps how to reproduce the problem?

I am looking forward to your reply.

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Attached Files:
marcelo
Posted on: 24 Apr 2019 17:33

this.radChat1.ChatElement.InputTextBox.TextBoxItem.TextBoxControl.Multiline = true;

I'm not able to put the InputBox as Multiline

NOT FOUND
VERSION 2019