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
480
how to prevent single click edits of appoitments
posted

I have a specialized use case for  UltraCalendarInfo and UtlraTimeLine.  I provide my own editors. How can intercept and cancel the single click embedded editors?

 

  • 480
    Offline posted

    note this is different from handlingBeforeDisplayAppointmentDialog event.  That is triggered by double click.

     

    • 48586
      posted in reply to Karl Meissner

      Hello ,

       

      WinDayView, WinWeekView and WinMontViewSingle component have a property ShowClickToAddIndicator . This indicator appears when the end user hovers the mouse pointer over a TimeSlot or the AllDayEvent area of the WinDayView™ control, or over the day area of the WinWeekView™ and WinMonthViewSingle™ controls. It provides a way to add an Appointment without launching the appointment dialog. When the indicator is clicked, a new Appointment is added and placed into edit mode. For more information about this property please review following link:

       

      http://help.infragistics.com/Help/NetAdvantage/WinForms/2011.1/CLR2.0/html/WinSchedule_Use_the_Click_to_Add_Indicator.html

       

      And UltraTimeLineView doesn’t support this functionality by default. Could you please verify that you are using UltraTimeLineView. Maybe you have written some code which on mouse click adds appointment and puts appointment in edit mode.

       

       

      I am waiting for your feedback .

      • 480
        Verified Answer
        Offline posted in reply to Hristo Goshev

         Thanks to Hristo for the answer

            ultraTimelineView1.AppointmentEnteringEditMode += new AppointmentEnteringEditModeHandler(ultraTimelineView1_AppointmentEnteringEditMode);

        ..... 

         void ultraTimelineView1_AppointmentEnteringEditMode(object sender, AppointmentEnteringEditModeEventArgs e)

        {  

        // prevent single click edits.    

        e.Cancel = true;

        }

        • 48586
          posted in reply to Karl Meissner

          Hello ,

           

          Could you please let me know what exactly property of UltraTimeLineView you  have been set in order display default editor on a single click.  Please modify attached sample.

          UltraList view has a property AutoAppointmentCreate which returns or sets a value indicating whether a new Appointment is automatically created and placed into edit mode when the SelectedDateTimeRange is non-empty and the user presses the enter key or space bar. So if this is the property which you are looking for you could set it to false. More information about this property you could find on the following link.

          http://help.infragistics.com/Help/NetAdvantage/WinForms/2011.1/CLR2.0/html/Infragistics2.Win.UltraWinSchedule.v11.1~Infragistics.Win.UltraWinSchedule.UltraTimelineView~AutoAppointmentCreate.html

          I ma waiting for your details.

          101418.zip
          • 480
            Offline posted in reply to Hristo Goshev

            I am populating the appointments from a data source and wizard.  Left click has nothing do to with it.  This is a build in behavior of the Infragistics control I want to disable.

            There does not seem to be a simple way to add a screen shot to a forum post so I opened a trouble ticket. CAS-101598-Y6B1S5

            In the case, I uploaded the screen shot. It shows the Infragistic embedded editor in the appointment open in response to a left click.

            I just want to disable to embedded editor or cancel the event that is opening it, in my case it seems trigger by left click.   This part of the infragistics control an I really should be able to turn it off.

            • 48586
              posted in reply to Karl Meissner

              Hello,

               

              Could you please explain again your issue, because I am not sure that I completely understand it. In your first post you say:

              “How can intercept and cancel the single click embedded editors?”

              and then

              “  I have extended it a lot for my own application.  So I have my own way of populating the time line.

              When then user single left clicks the appointment it already has been added programmatically. ”

               

              As I said UltraTimeLine editor doesn't show any editors on single click by default. So If you programmatically adding appointment on left click and you want to get rid of this, just remove the code which adds new appointment on left click. If this is not the case then please post a small sample in zipped format, which demonstrates your issue and please explain again what is your goal.

              I am waiting for your details.

              • 480
                Offline posted in reply to Hristo Goshev

                Yes I am definitely using UltraTimelineView.   I have extended it a lot for my own application.  So I have my own way of populating the time line. 

                When then user single left clicks the appointment it already has been added programatically.