Completed
Last Updated: 27 Aug 2019 12:20 by ADMIN
Release R3 2019
Hemesh
Created on: 16 May 2019 13:23
Category: Chat
Type: Bug Report
1
RadChat: Missing message after scrolling to the bottom of the chat messages view

Please refer to the attached sample project and follow the steps from the gif file. The scrollbar needs to be in the middle.

Note: the issue can be reproduced without action list as well.

4 comments
ADMIN
Dimitar
Posted on: 27 Aug 2019 12:20

Hello,

A fix will be introduced in Telerik UI for WinForms R3 2019.

Additionally, now the ScrollToItem method of the Scroller is working so that the end user can scroll to a particular message: 

this.radChat1.ChatElement.MessagesViewElement.Scroller.ScrollToItem(this.radChat1.ChatElement.MessagesViewElement.Items[5]);



Regards,

Dimitar

Progress TelerikRadChat for Winforms

ADMIN
Dess | Tech Support Engineer, Sr.
Posted on: 29 Jul 2019 12:51
Hello, Hemesh,   

To be honest, we have already tried to address this issue. But the fix candidate didn't provide a stable solution which wouldn't affect the proper functioning of RadChat. I have increased the priority of the issue.

This is a high priority bug which is definitely in our TODO list. However, due to its complexity, I am unable to provide an exact time frame when the solution will be released. 

Make sure that you follow this item and thus you will get notified when the status changes. 

In order to scroll to the bottom of RadChat, you can use the following code snippet as well. Could you please give a try and see how it works on your end?

this.radChat1.ChatElement.MessagesViewElement.VScrollBar.Value = Math.Max(this.radChat1.ChatElement.MessagesViewElement.VScrollBar.Value,
                this.radChat1.ChatElement.MessagesViewElement.VScrollBar.Maximum - this.radChat1.ChatElement.MessagesViewElement.VScrollBar.LargeChange);

I am looking forward to your reply.

Regards,
Dess | Tech Support Engineer, Sr.
Progress TelerikRadChat for Winforms
Hemesh
Posted on: 26 Jul 2019 13:10

Hello,

Could you please tell, when this issue will be fixed? As blank dots in the chat are creating problem in reading the correct chat.

Showing blank dots instead of real message is very frequent now.

Also, the major blank dots are occuring when i scroll the chat to the bottom through code shared by you, which is -

RadScrollBarElement scrollbar = radChat1.ChatElement.MessagesViewElement.Scroller.Scrollbar;
scrollbar.Value = 0;
 
    while (scrollbar.Value < scrollbar.Maximum - scrollbar.LargeChange + 1)
    {
        scrollbar.PerformSmallIncrement(1);
        radChat1.ChatElement.MessagesViewElement.Scroller.UpdateScrollRange();
        Application.DoEvents();
    }
 
    scrollbar.PerformLast();

 

Would you please help resolving this at earliest. Looking forward to your response.

 

Thanks.

ADMIN
Dess | Tech Support Engineer, Sr.
Posted on: 16 May 2019 13:33
Hello, Hemesh, 

Thank you for reporting this issue. Indeed, the message is missing in some cases (not always) when the scrollbar is placed in the middle and a new message is shown.

I have also updated your Telerik points.

Currently, the possible solution that I can suggest is to update the layout after a new message is added:

private void radChat1_SendMessage(object sender, SendMessageEventArgs e)
{
    this.radChat1.ChatElement.MessagesViewElement.InvalidateMeasure(true);
    this.radChat1.ChatElement.MessagesViewElement.UpdateLayout();
}

Could you please give a try and see how it works on your end?

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

Regards,
Dess | Tech Support Engineer, Sr.
Progress TelerikRadChat for Winforms