Custom inline attributes

Dear Syncfusion team, 


I was wondering whether it is possible to show other elements in the line view. For instance we are working on a planning app, and for a given date in the future we would like to show the planned item delivery which will need to show the address, name of the buyer and the number of items. Each event will be represented as a button, such that once pressed a new view is loaded.


I also have another question regarding a button. In inlineview data template i added a button, but the button click event is not triggered. Please let me know if I need to post this in a separate thread.


thanks in advance. 


kr,

O


3 Replies

SS SaiGanesh Sakthivel Syncfusion Team October 1, 2021 12:45 PM UTC

 
Thank you for contacting Syncfusion support. 
 
Query 1: How to show the details in the view. 
Your requirement can be achieved with help of InlineItemTapped event, you can get the details of the appointment subject, startime and EndTime value. Please refer to the following code snippet for your reference. 
 
Code Snippet 
private void calendar_InlineItemTapped(object sender, Syncfusion.SfCalendar.XForms.InlineItemTappedEventArgs e) 
{ 
    var appointment = e.InlineEvent; 
    DisplayAlert("","Subject: "+ appointment.Subject.ToString()+ "\r\n" + "StartTime: "+ appointment.StartTime.ToLongDateString() + "\r\n" + "EndTime: "+ appointment.EndTime.ToLongDateString() , "ok"); 
} 
 
Please refer to the sample in the following link for your reference. 
 
#Regarding Button click is not triggered. 
As per your implementation of SfCalendar, the tapping the appointment or custom appointment in the inline view will trigger only the InlineItemTapped event. Interaction for the custom view element will not passed, this is an expected behiavor. 
 
Please let us know if you have any concerns. 
 
Regards,
SaiGanesh Sakthivel
 



OR Orkhan October 1, 2021 02:56 PM UTC

hi  SaiGanesh, 

many thanks for your reply. i am not sure I understand, or if was clear. What I was trying to ask is whether in the inlineview view for appointment I can show other data elements, rather than just subject, starttime, endtime? 


For instance let's say we have a delivery planned in one week. In the inlineview I would like to show the number of items which are to be delivered as well. thanks in advnace. 


clear on the button click event. 


Regards,

Orkhan



SS SaiGanesh Sakthivel Syncfusion Team October 4, 2021 12:32 PM UTC

Hi Orkhan, 
 
Thank you for contacting Syncfusion support. 
 
We have analyzed your requirement of “proivde a support to get the custom objects in inlineItemTapped event”, as of now calendar doesn’t have the support for the same. We have already logged a feature request for the same. We will implement this feature in any of our upcoming release.  
 
 
If you have any more specification/suggestions to the feature request, you can add it as a comment in the portal and cast your vote to make it count. 
 
Regards, 
SaiGanesh Sakthivel 


Loader.
Up arrow icon