Completed
Last Updated: 25 Apr 2019 08:43 by ADMIN
ADMIN
Dess | Tech Support Engineer, Sr.
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;
2 comments
ADMIN
Dess | Tech Support Engineer, Sr.
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