We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

AgendaItemTemplate not rendering anything complex

Thread ID:

Created:

Updated:

Platform:

Replies:

141763 Jan 3,2019 03:33 AM UTC Feb 7,2019 11:35 AM UTC Xamarin.Forms 5
loading
Tags: SfSchedule
Smokeball
Asked On January 3, 2019 03:33 AM UTC

We are evaluating the SfSchedule control in Xamarin.Forms but it looks like the Agenda items aren't really that customizable, sure if we put a Button in there or just a plain Label, it renders, but if I have something a bit more complex like this:

    <ContentPage.Resources>
        <ResourceDictionary>
            <DataTemplate x:Key="AgendaItemTemplate">
                <Grid HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>
                    <Label TextColor="Orange" FontSize="Medium" Grid.Column="0" Grid.Row="0" Text="{Binding StartTime, StringFormat='H'}" />
                    <Label TextColor="Black" FontSize="Medium" Grid.Column="1" Grid.Row="0" Text="{Binding Subject}" />
                </Grid>
            </DataTemplate>
        </ResourceDictionary>
    </ContentPage.Resources>
    <schedule:SfSchedule x:Name="scheduler" DataSource="{Binding ScheduleCollection}" ScheduleView="MonthView" OnMonthCellLoadedEvent="SfSchedule_OnOnMonthCellLoadedEvent">
        <schedule:SfSchedule.MonthViewSettings>
            <schedule:MonthViewSettings ShowAgendaView="true" AgendaItemTemplate="{StaticResource AgendaItemTemplate}" />
        </schedule:SfSchedule.MonthViewSettings>
    </schedule:SfSchedule>


It doesn't render anything at all. Am I missing something?

Subburaj Pandian Veluchamy [Syncfusion]
Replied On January 3, 2019 08:43 AM UTC

Hi Winston,  
  
Thanks for contacting Syncfusion support.  
  
We have analyzed the reported issue with “AgendaView Item Template not rendering properly” based on the code you have shared, and it works fine from our side. We have already found and fixed a similar issue and it was included in our last release. Kindly update to our latest version and check the same. 
  
Please find the link to download our latest version  
 
 
We have prepared sample for the same.  
 
Sample: Schedule  
 
If the issue remains same even after the update, kindly modify the sample and revert us with more details and replication procedure, it will be helpful for us to give you a better solution.  
 
Regards,
Subburaj Pandian V 


Smokeball
Replied On January 3, 2019 10:13 AM UTC

Thank you for your reply. You're right it's fixed and works in the latest one, however there's one problem, it seems it doesn't increase automatically the height of the row item if one of the subject is very long, how do we fix this?

I've attached a screenshot

Attachment: not_expanding_358f3546.zip

Subburaj Pandian Veluchamy [Syncfusion]
Replied On January 4, 2019 10:25 AM UTC

Hi Winston, 
 
Thanks for the update. 
 
As of now, we don’t have support to customize the AgendaView row height in Schedule Xamarin Forms. We have already considered to implement this feature and logged feature report for the same. In the feature, we have considered the following cases, 
 
·       Support that allows user to set a static height for agenda view row, that will be applicable for all the rows in agenda view. 
·       Support that allows user to change a single row height only in agenda view, so agenda view can have uneven rows. 
 
We will implement this feature in any of our upcoming release and let you know once it has been rolled out. 
 
Regards,
Subburaj Pandian V 


Amir
Replied On February 6, 2019 02:43 PM UTC

Is there a way we can match items to the agenda row height, as my items don't currently fill to the height of each row on android


Subburaj Pandian Veluchamy [Syncfusion]
Replied On February 7, 2019 11:35 AM UTC

Hi Amir, 
 
We have checked the reported issue with Schedule “Agenda View items not rendered based on its default height” in Xamarin Forms (Android) and it is working fine as expected from our side. 
 
We have prepared sample for the same, please find the sample by the following link, 
 
 
Kindly check the sample, if the sample doesn’t meet your scenario / requirement, kindly revert us by modifying the sample based on your scenario to reproduce the issue. Which helps us to analyze on it and provide you the solution. 
 
Regards,
Subburaj Pandian V  


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;