ScheduleGrid.DisplayStrings[29] = "événements";
//Localized strings
public static string[] DisplayStrings = new string[]
{
"no closing delimiter error",//0
"(none)", //1
"Week starting ",//2
"Starting ",//3
" Double Click to Add All Day Event",//4
"To ",//5
"From ",//6
"Remove this appointment?", //7
"Remove Appointment",//8
"&New Item",//9
"New &All Day item",//10
"&Edit Item",//11
"De&lete Item",//12
"&Day",//13
"&Work Week",//14
"Wee&k",//15
"&Month",//16
"Click to switch to Day view",//17
"Click for more Appoinments.", //18
"Remove this item?", //19
"Remove all occurrences of this recurring appointment?", //20
"Recurring Appointment",//21
"Remove this span appointment?", //22
"Span Appointment",//23
"Do you want to save your changes?", //24
"Scheduler",//25
"The end date you entered occurs before the start date",//26
"Enter valid start time",//27
"Enter valid end time",//28
" Events"//29
};
|
//Query 1
However, the string only has "Events" value, not "{0} Events"... Is there a way to completely hide this message or to completely replace it (without the number) ? |
As per schedule control behaviour we don't have integer localization support, this localization only support string values, "X Events" Display message only for the GridVisualStyle.Metro theme. |
//Query 2
Additionally, how could I disable (or capture) the click/double-click events on this message 29 ? |
We suspect that you are trying to handle the appointment form when double clicking on the appointments. If so, we would suggest that you to handle the ShowingAppointmentForm based conditions. Please make use of the below code example.
Example code
//Event subscription
scheduleControl1.ShowingAppointmentForm += ScheduleControl1_ShowingAppointmentForm;
//Event customization
private void ScheduleControl1_ShowingAppointmentForm(object sender, ShowingAppointFormEventArgs e)
{
if(e.Item.StartTime == new DateTime(2020,10,09))
{
e.Handled = true;
}
} |
//Query 1
Yes, my control uses the Metro visual style... so no possibility to hide it ? |
Yes, currently schedule control Metro Theme has the "X Events" dialogue style and ScheduleControl does not have possibilities to remove it. |
//Query 2
Not, I don't talk about the appointment form (I use my own form and already handle this event). In metro theme, on message 29, the click/double click turns the grid into a day view !!! Even that I have the "scheduleControl1.SwitchViewStyle = false;"
The views are managed by dedicated buttons on my custom tool bar, the user don't have to be able to switch the view through this event. What's the solution for this ? |
As per the current behavior of ScheduleControl, the ViewType will be changed when the "X events" is clicked. To notify this action, the DateValueChanging event can be used. Please refer the code snippet below.
//Event subscription
scheduleControl1.Calendar.DateValueChanging += Calendar_DateValueChanging;
//Event customization
private void Calendar_DateValueChanging(object sender, DateValueEventArgs e)
{
e.Cancel = true;
scheduleControl1.SwitchViewStyle = false;
} |
Hi Eddy,Thank you for the update.
//Query 1Yes, my control uses the Metro visual style... so no possibility to hide it ? Yes, currently schedule control Metro Theme has the "X Events" dialogue style and ScheduleControl does not have possibilities to remove it. //Query 2Not, I don't talk about the appointment form (I use my own form and already handle this event). In metro theme, on message 29, the click/double click turns the grid into a day view !!! Even that I have the "scheduleControl1.SwitchViewStyle = false;"The views are managed by dedicated buttons on my custom tool bar, the user don't have to be able to switch the view through this event. What's the solution for this ? As per the current behavior of ScheduleControl, the ViewType will be changed when the "X events" is clicked. To notify this action, the DateValueChanging event can be used. Please refer the code snippet below.//Event subscriptionscheduleControl1.Calendar.DateValueChanging += Calendar_DateValueChanging;//Event customizationprivate void Calendar_DateValueChanging(object sender, DateValueEventArgs e){e.Cancel = true;scheduleControl1.SwitchViewStyle = false;}Please get back us for any further assistance.Regards,Arulpriya
//Query 1
Yes, my control uses the Metro visual style... so no possibility to hide it ? |
Yes, currently schedule control Metro Theme has the "X Events" dialogue style and ScheduleControl does not have possibilities to remove it. |
//Query 2
Not, I don't talk about the appointment form (I use my own form and already handle this event). In metro theme, on message 29, the click/double click turns the grid into a day view !!! Even that I have the "scheduleControl1.SwitchViewStyle = false;"
The views are managed by dedicated buttons on my custom tool bar, the user don't have to be able to switch the view through this event. What's the solution for this ? |
As per the current behavior of ScheduleControl, the ViewType will be changed when the "X events" is clicked. To notify this action, the DateValueChanging event can be used. Please refer the code snippet below.
//Event subscription
scheduleControl1.Calendar.DateValueChanging += Calendar_DateValueChanging;
//Event customization
private void Calendar_DateValueChanging(object sender, DateValueEventArgs e)
{
e.Cancel = true;
scheduleControl1.SwitchViewStyle = false;
} |
Hi Eddy,Thank you for the update.
//Query 1Yes, my control uses the Metro visual style... so no possibility to hide it ? Yes, currently schedule control Metro Theme has the "X Events" dialogue style and ScheduleControl does not have possibilities to remove it. //Query 2Not, I don't talk about the appointment form (I use my own form and already handle this event). In metro theme, on message 29, the click/double click turns the grid into a day view !!! Even that I have the "scheduleControl1.SwitchViewStyle = false;"The views are managed by dedicated buttons on my custom tool bar, the user don't have to be able to switch the view through this event. What's the solution for this ? As per the current behavior of ScheduleControl, the ViewType will be changed when the "X events" is clicked. To notify this action, the DateValueChanging event can be used. Please refer the code snippet below.//Event subscriptionscheduleControl1.Calendar.DateValueChanging += Calendar_DateValueChanging;//Event customizationprivate void Calendar_DateValueChanging(object sender, DateValueEventArgs e){e.Cancel = true;scheduleControl1.SwitchViewStyle = false;}Please get back us for any further assistance.Balamurugan Thirumalaikumar
Hi Eddy,Thank you for your patience.We confirmed that reported scenario is a defect from our end. We have logged a bug report for this issue “Disable the view navigation when clicked in X More Events” Here we have provided private feedback link, we request you to log in to view the link furtherThe fix will be available in our upcoming Volume3 SP1 release which is scheduled to be rolled out in the end of November 2020. Would waiting for the official release is OK for you? Otherwise, we can provide a patch in the reported version 16th October 2020. If you have any more specification replication procedure or a scenario to be tested you can add it as a comment in the portal also if the version is not correct, please specify the version in which you need the patch.Regards,Arulpriya