Completed
Last Updated: 06 Dec 2018 11:21 by ADMIN
Mischa Müller
Created on: 14 Nov 2018 19:11
Category: Chat
Type: Bug Report
0
Chat: InvalidOperationException when calling the AddRange of a RadObservableCollection source
As I change the items of the RadObservableCollection the Chat Control crashes. Please press a button in the attached example.

Scheduled for:
The fix for this issue will be available with LIB (version 2018.3.1210) scheduled for publishing on Monday, 10th December 2018.
Attached Files:
5 comments
ADMIN
Stefan
Posted on: 26 Nov 2018 18:05
Hi Mischa,

Thank you for the clarification.

Indeed, it seems that the control does not manage to update its UI as expected in this case. Please excuse me for misleading you. I have added this information in the logged item in our system. I am afraid that I cannot propose a workaround for this behavior. We are currently working on fixing it but I cannot commit to a certain time-frame when it will be fixed. Please, follow the item to get notified as soon as its status changes.

Regards,
Stefan
Progress TelerikWant to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Mischa Müller
Posted on: 22 Nov 2018 09:31

Hi Stefan,

 

thanks for your eMail. I tried it but it does not work.

 

I just changed my code in the example I already sent you to:

 

private void Btn1_Click(object sender, RoutedEventArgs e)
{
    Messages.Clear();
    foreach (var item in Model.Collection1) Messages.Add(item);
}

 

When I click the first button I get an empty chat control.

 

Thanks you and best regards

 

       Mischa

ADMIN
Stefan
Posted on: 22 Nov 2018 09:23
Hello Mischa,

RadObservableCollection exposes the Clear method for such a requirement. You can use the same method of a standard ObservableCollection respectively. Can you please give it a try?

Regards,
Stefan
Progress TelerikWant to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Mischa Müller
Posted on: 15 Nov 2018 14:44

Hi Stefan,

 

thanks for your eMail. How can I clear/reset the items before I add a new item? (It does not work if I use a Collection).

 

Best regards

 

       Mischa

ADMIN
Stefan
Posted on: 15 Nov 2018 14:35
Hello Mischa,

Thank you for the attached sample application.

I managed to replicate the exception with it and I have logged it in our Feedback Portal: item. I have also updated your Telerik points as a small gratitude for your cooperation in reporting the problem.

As a workaround, I can propose you using the Add method for each data item.

Let me know in case I can be of further assistance.

Regards,
Stefan
Progress TelerikWant to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.