HI All,I need to remove from and to date in appointment under ultramonthviewsingle control as shown in the red mark in the following screen shot. Is there any property to do that. Please let me know. You help will be highly appreciated.
Thanks
Suresh
HI Brain,
At first thanks for providing me solution for the problem. I tried the things as you mentioned. It works well for hiding the from date part. But the To date part still shows up in the appointment under the ultramonthviewsingle control as shown below.
I use the following code snippet.
Interface IUIElementCreationFilter has been used
public void AfterCreateChildElements(UIElement parent) { UIElement text = parent.GetDescendant(typeof(DateContinuationUIElement)); if (text != null) { parent.ChildElements.Remove(text); } } public bool BeforeCreateChildElements(Infragistics.Win.UIElement parent) { return false; }
this.ultraMonthViewSingle1.CreationFilter = this;
this.ultraWeekView1.CreationFilter = this; this.ultraDayView1.CreationFilter = this;
Let me know what am i doing wrong.
Suresh.
Could you please provide me the code snippet to accomplish this.
Implement the IUIElementCreationFilter interface and remove the UIElement; its typename is Infragistics.Win.UltraWinSchedule.DateContinuationUIElement