I use the RadChat control within a simple page in full size (no padding) on android.
When I tab the input message box, the keyboard shows up and the complete control is moving up without resizing.
This means the recent message is not visible (if it is a new conversation). How can I adjust the control resize behaviour that the keyboard is not hiding the messages?
Also how can I activate a whatsapp like scrollbar at the right side?
Hi.
I'd like a little advice and suggest a new control.
Prior to iOS14 we used https://github.com/jamesmontemagno/MediaPlugin as our media picker in our Xamarin forms app.
Since https://github.com/jamesmontemagno/MediaPlugin does not work on iOS14 and is not being actively developed, we switched to xamarin/Essentials and now face a rotation issue (https://github.com/xamarin/Essentials/issues/1514) for a long time.
There seems not to be any alternatives!
What are you doing?
And how about developing a reliable upload control?
Best regards
Morten
I'm using RadChat control.
I use MVVM approach to bind the control's ItemSource to an ObservableCollection property in my ViewModel.
So in my xaml I have something like this:
<
telerikConversationalUI:RadChat
Author
=
"{Binding Me}"
ItemsSource
=
"{Binding Messages}"
ItemConverter
=
"{StaticResource SimpleChatItemConverter}"
SendMessageCommand
=
"{Binding SendMessageTappedCommand}"
ItemTemplateSelector
=
"{StaticResource MyChatItemTemplateSelector}"
ControlTemplate
=
"{StaticResource RadChat_ControlTemplate}"
>
In my ViewModel I have something like this:
public ObservableCollection<
CustomMessage
> Messages { set; get; }
I have CustomMessage class which contains additional properties like MessagePostedDate (which is of type DateTime, it contains the DateTime of when the message was posted)
I've also bound SendMessageCommand in RadChat control to a command (SendMessageTappedCommand) in my ViewModel.
What I've noticed is that when the Send button is tapped, the component automatically adds a new TextMessage (with Text property set to whatever the user typed) to the list, and only then does it call the SendMessageTappedCommand in my ViewModel. However, I do not want the automatic addition of a new TextMessage since I add a new CustomMessage item to Messages collection, which is bound to the RadChat control, and the SimpleChatItemConverter (which I've bound to ItemConverter of the RadChat control) converts that CustomMessage, and displays the posted date.
So the problem is everytime the user inputs a message and clicks on Send, the message ends up showing twice. First one shows up without the posted date (because a new TextMessage is automatically appended by the component), and the second message is with posted date, which was added by my SendMessageTappedCommand.
How do I stop the automatic creation of a new TextMessage when user taps on Send button?
Hi,
I use local notifications in my application. I want to open my background application from notification and show the message in popup window. That gives me exeption:
Android.Views.WindowManagerBadTokenException: 'Unable to add window -- token null is not valid; is your activity running?'
I think it is duo to timing but I doesn't know how to fix it.
//open popup after notification tapped
private static void ShowNotification(string title, string message)
{
App.isBackground = false;
Device.BeginInvokeOnMainThread(() =>
{
TelerikPopupWin.SetLabelText = title +"\n"+ message;
TelerikPopupWin.OpenPopup = true;
});
}
Error happens here:
public static bool OpenPopup { get { return popup.IsOpen; } set { popup.IsOpen = value; } }
Is there a way to "standardize" (make similar on iOS and Android) Telerik RadCalendar in Xamarin Forms, in case of Year View?
Currently, on Android, Year View shows days of months "thumbnails", which looks crappy on small devices displays - causing "overlapping", like:
attached Android_overlapping.png
On bigger devices screens it looks quite fine, but there is a difference between Android and iOS:
attached Android.png
and
attached iOS.png
Is there a way to disable days of months "thumbnails" on Android and leave only months names (like on iOS) OR to enable days of months "thumbnails" on iOS (like on Android)?
Hi Support,
We are currently evaluating Telerik UI for Xamarin. The component we are thinking of using heavily is Accordion Control.
Can you please provide an example on how to add multiple items dynamically to the Accordion?
All the example I found seems to be using XAML with hardcoded items.
Thanks.
Regards,
Andrew