Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
215
Show multiple (narrowed) appointments in UltraMonthViewSingle
posted

Hey there,

i got (hopefully) a pretty easy problem. After a lot of research in this forum i found nothing that answers my question. 

How i can show multiple appointments in the UltraMonthViewsingle Control? Clearly, when i increase the size of the control, the more appointments are visible per day. 

calendar without creationfilter

But i want to keep the size of the control and smaller the appointment heights. I managed this with the CreationFilter interface. Code:


 public class MonthViewSingleAppointmentCreationFilter : IUIElementCreationFilter

    {

        public void AfterCreateChildElements(UIElement parent)

        {

     

            if (parent.GetType() == typeof(SingleDayAppointmentUIElement))

            {

                var appoitment = (SingleDayAppointmentUIElement)parent;

                if (appoitment != null)

                    appoitment.Rect = new Rectangle(appoitment.Rect.X, appoitment.Rect.Y, appoitment.Rect.Width, 13);

            }

            else if (parent.GetType() == typeof(MultiDayAppointmentUIElement))

            {

                var appoitment = (MultiDayAppointmentUIElement)parent;

                if (appoitment != null)                

                    appoitment.Rect = new Rectangle(appoitment.Rect.X, appoitment.Rect.Y, appoitment.Rect.Width, 13);

            }

        }

        public bool BeforeCreateChildElements(UIElement parent)

        {

            return false;

        }

    }

The result is following:

calendar with creationfilter

Clearly you can see, theres a lot of space for more appointments. How i can move them together? The  A similar problem is shown in this post http://ko.infragistics.com/community/forums/t/86148.aspx  but i found no answer for me... 

I hope you can help me once more again! 

Parents
No Data
Reply
  • 6120
    Offline posted

    Hello Manfred,

    I have reviewed the CreationFilter logic that was implemented here to reduce appointment size. However, removing the extra space between these appointments is a very complex thing to achieve. This involves looping through all DayUIElements and looping through every appointment in them and calculating its rect position based on which the next appointment location has to be set.

    After examining removing space between the appointments in UltraMonthViewSingle, this has been determined to be a new product idea.
    You can suggest new product ideas for future versions (or vote for existing ones) at <http://ideas.infragistics.com>.

    Submitting your idea will allow you to communicate directly with our product management team, track the progress of your idea at any time, see how many votes it got, read comments from other developers in the community, and see if someone from the product team has additional questions for you.

    Remember when submitting your idea to explain the context in which a feature would be used and why it is needed as well as anything that would prevent you from accomplishing this today. You can even add screenshots to build a stronger case. Remember that for your suggestion to be successful, you need other members of the community to vote for it.  You can also link back to this thread for additional details.

    Thank you in advance to submitting your product idea.

    Sincerely,
    Sahaja Kokkalagadda
    Associate Software Developer

Children
No Data