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
130
Get the date from singlemonthview from clickfor more apptments
posted

When a user clicks on the triangle for Get more Appointments, how can I get the date.  I can do calendarinfo.activeday.date to get the active day, but clicking on the triangle does not make it the active date.  Can I make the day that the user clicks on the triange the active day in the

UltraMonthViewSingle1_MoreActivityIndicatorClicked event.  Thx

Parents
No Data
Reply
  • 230
    Verified Answer
    posted

    The event args has what you need. In my case when the user clicks that triangle i am sending them to a day view with this day as the active day. 

    private void _monthView_MoreActivityIndicatorClicked(object sender, MoreActivityIndicatorClickedEventArgs e)
            {
                // Unselect all the selected days             
                if (this.ultraCalendarInfo1.SelectedDateRanges.Count > 0)
                    foreach (Infragistics.Win.UltraWinSchedule.Day day
                        in this.ultraCalendarInfo1.SelectedDateRanges[0].Days)
                    {
                        ultraCalendarInfo1.GetDay(day.Date, false).Selected = false;

                    }

                ultraCalendarInfo1.GetDay(e.Day.Date, true).Activated = true;

                this._dayView.Visible = true;
                this._monthView.Visible = false;
                this._weekView.Visible = false;

                FormatHeaderString();
            } 

     

Children