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?
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;
}
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.
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.
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.
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.