Sep 04, 2015, 8:36 AM
event title start time is being added automatically
hi guys,
this is my code to fill calendar panel
like this 8:00 am . how can i remove this start time from title?
this is my code to fill calendar panel
private void GetEvents(int klinikId, string tc)
{
var cetvels = MhrsCetvelSvc.GetMhrsCetvels(KurumIdGetir(), klinikId, tc);
var emc = new EventModelCollection();
foreach (var cetvel in cetvels)
{
var em = new EventModel
{
EndDate = cetvel.BitisTarihi,
StartDate = cetvel.BaslangicTarihi,
CalendarId =
cetvel.KesinCetvelId == 0 || cetvel.KesinCetvelId == null ? 1 : cetvel.Aksiyon == 1 ? 2 : 4,
//2 yeşil(randevuya açık) 4 kırmızı(kapalı)
EventId = (int?)cetvel.SiraNo,
Title =
" - " + cetvel.BitisTarihi.ToString().Substring(cetvel.BitisTarihi.ToString().Length - 8, 5) +
"</br>" + cetvel.AksiyonAdi +
" </br> -------------- </br> Klinik: " + cetvel.KlinikAdi + " </br> Alt Klinik: " +
cetvel.AltKlinikAdi + " </br> Servis: " + cetvel.ServisAdi + " </br> Servis Alt: " +
cetvel.AltKlinikAdi + " </br> Tedavi Süresi: " + cetvel.TedaviSuresi + " </br> Hasta Sayısı: " +
cetvel.HastaSayisi + " </br> Kesin Cetvel Id: " + cetvel.KesinCetvelId +
" </br> Taslak Cetvel Id: " + cetvel.TaslakCetvelId + " </br> Başlangıç Tarihi: " +
cetvel.BaslangicTarihi + " </br> BitiÅŸ Tarihi: " + cetvel.BitisTarihi + " </br> Toplam Hasta: ",
IsAllDay = false,
Location = "",
Notes = "",
Reminder = "",
Url = ""
};
emc.Add(em);
}
CalendarPanel1.EventStore.DataSource = emc;
CalendarPanel1.EventStore.RemoveAll();
CalendarPanel1.EventStore.DataBind();
}
the problem is start time of title is added automatically in am pm format although i dont give a string for start time. like this 8:00 am . how can i remove this start time from title?
Last edited by azat; Sep 04, 2015 at 8:44 AM.