How would you go about supporting pull to refresh functionality? Alternatively how could you detect the first message on the chat has been presented?
1 Answer, 1 is accepted
0
Petar Marchev
Telerik team
answered on 26 Jul 2019, 10:39 AM
Hi Collin,
Thank you for this input. I think that the pull-to-refresh feature is pretty nice and important. However, the chat was originally implemented mainly focusing on chat-bots and some features that are a bit more chat-room specific have not been implemented. With this I mean that we do not have a built-in pull-to-refresh (or load-on-demand) feature.
The RadChat uses a control called ChatListView to display the items. At the moment we do not keep track of the items on screen, so I can only suggest you try go get this information yourself. You will need to lookup the renderer in each platform and see if you can use the Control to get the information you need. In each platform the renderer is named ChatListViewRenderer, so you can extend this class and use the ExportRenderer attribute to tell the Forms framework to create instances of the extended class. I have not researched on whether or not the underlying platform controls have a pull-to-refresh feature or a way to find out the items on screen, so I am unsure if this will work.
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?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items