DataTemplate not rendering as expected

Hello,

i'm trying to customize the appearance of appintments in the scheduler using DataTemplates and a DataTemplateSelector.

I updated the syncfusion sample to nuget version 16.1.0.32 and modified the DayAppointmentTemplate to use a grid ( see attachment).

The grid contains two labels, each label in its own row. 

The first label is a static text, the second label shows the appointment subject using binding.

Problem now is that the second label is not shown with its complete length. (See screenshot in the attachment.) The lenght of the second label seems to be dependent on the width of the first label. If i remove the first label, i can't even see the second label.

I also tried using a stacklayout instead of a grid, but i get the same incorrect rendering.

Regards,
  Kalle


Attachment: DayAppointmentTemplate_859a2027.zip

1 Reply

GC Ganeshamoorthy Chandramoorthy Syncfusion Team April 4, 2018 07:00 PM UTC

Hi Kalle, 
 
We have checked your query with the provided information and we are able to reproduce the issue “Label in AppointmentTemplate is not rendered properly” in Xamarin Forms Android. We suspect this issue to be a framework issue. Since we have tested with a simple sample with the same flow of code and same issue is reproduced. We have also created an issue report in Bugzilla (GitHub), kindly find the link below,   
   
 
We will update the solution once we get prompt update from the Xamarin website. We appreciate your patience until then. As of now, you can set static height and width to the view (here Grid) such that expected behavior is obtained.  
 
Regards, 
Ganeshamoorthy C 


Loader.
Up arrow icon