When it comes to items management, you can think of the RadChat control as a specialized List control that is intended to have an ObservableCollection for the ItemsSource. The app logic is responsible for managing what items are in the bound items source, it is this items source that determines what is in the chat.
I highly recommend checking out our demos for the control. To explore the features, here are the SDKExamples demo
, you can also see four fully implemented examples in the QSF Demo here
Let me address your questions directly:
1) How do you remove a specific chat from a Chat List ?
Remove that item from the bound ObservableCollection, for example: MyObservableCollection.Remove(itemToRemove)
This is commonly used when you need to have a "waiting for response..." chat item. This item is added to the collection after the user sends a message, but is then removed when the response arrives.
2) How do you Select Chat and be show selected Chats ?
The ConversationalUI has no concept of selected item.
3) How do you Clear the Whole Radchat Control ?
Clear the items in the bound items source, for example: MyObservableCollection.Clear()
4) How do you refresh by adding new chat item wihout the whole control flickering ?
You should not see flickering if you use MyObservableCollection.Add(itemToAdd)
. The most likely reason you see flickering is because the entire ItemsSource has been replaced, avoid this at all costs because it not only causes flickering, but also has a performance cost.
5) i am currently using a webservice to bind the chat and its working nice. now i want to refresh it on intervals. How is that normally done without Push Notification ? (OneSignal does not always work)
This functionality is outside the scope of responsibility for the control as it entirely depends on how the chat framework you're using works. For example, in the fully implemented demos I mentioned above, we use Azure BotService in this BotService class
(I think Bot Framework uses WebSockets with SignalR
If you're looking for general suggestions on what type of service to build into your custom web service, I recommend posting the question on StackOverflow
so you can get balanced feedback from users of many frameworks.
I hope I was able to answer your questions, if you have any further issues, please open a support ticket here
and attach the problematic code so that we can investigate directly.
Lance | Tech Support Engineer, Sr.
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Feedback Portal
and vote to affect the priority of the items