Localization for "x Events" in schedule cells

Hi !
Even my Winforms schedule control is localized as "fr-Fr", when a cell is too small to be able to display all contained appointments, a summary displays "x Events" that I want to translate.
Thanks in advance for your help.

14 Replies 1 reply marked as answer

BT Balamurugan Thirumalaikumar Syncfusion Team October 7, 2020 01:40 PM UTC

Hi Eddy, 
 
Thank you for using syncfusion products. 
 
In order to localize the default strings of ScheduleControl, the DisplayStrings property can be used. Please refer to the code snippet and sample. 
 
Code snippet 
 
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  
                            };  
 
 
 
 
Thanks & Regards, 
Balamurugan Thirumalaikumar 


Marked as answer

EM Eddy MARIANNE October 7, 2020 09:54 PM UTC

Great ! Thank you for this answer !

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) ?

Additionally, how could I disable (or capture) the click/double-click events on this message 29 ?



AR Arulpriya Ramalingam Syncfusion Team October 8, 2020 05:58 PM UTC

Hi Eddy, 
 
Thank you for the update. 
 
//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; 
    } 
} 
 
Please get back to us, if you need any further assistance. 
 
Regards, 
Arulpriya 



EM Eddy MARIANNE October 8, 2020 06:47 PM UTC

Hello Balamurugan.

Thanks for your reply.

//Query 1 :
Yes my control uses the Metro visual style... so no possibility to hide 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 ?

Than you in advance for your feedback.


AR Arulpriya Ramalingam Syncfusion Team October 9, 2020 06:45 PM UTC

Hi Eddy, 
  
Thank you for the update. 
  
//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; 
        } 
  
Please get back us for any further assistance. 
 

Regards,
Arulpriya



EM Eddy MARIANNE replied to Arulpriya Ramalingam October 11, 2020 10:22 PM UTC

Hi Eddy, 
  
Thank you for the update. 
  
//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; 
        } 
  
Please get back us for any further assistance. 
 

Regards,
Arulpriya


Hi Arulpria !

The event subscription is effective (can debug in the related function) but the cancellation (e.cancel = true) doesn't have any effect : the view still changes with only the piece of code you gave me... it returns to the day view

bug of the metro theme ?


BT Balamurugan Thirumalaikumar Syncfusion Team October 12, 2020 04:25 AM UTC

Hi Eddy,  
   
Thank you for the update.  
   
//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;  
        }  
   
Please get back us for any further assistance.  
 
Balamurugan Thirumalaikumar  




EM Eddy MARIANNE replied to Balamurugan Thirumalaikumar October 12, 2020 02:36 PM UTC

Hi Eddy,  
   
Thank you for the update.  
   
//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;  
        }  
   
Please get back us for any further assistance.  
 
Balamurugan Thirumalaikumar  



Hi Balamurugan.

I can't see any new element in your post... what about the "e.Cancel = true" no effect ? Day view is applied even the piece of code run in dateChangingEvent subscriber function.


BT Balamurugan Thirumalaikumar Syncfusion Team October 12, 2020 02:40 PM UTC

Hi Eddy,

Please ignore the previous update.

We could understand the scenario. We have forwarded the query to our development team for further validation and we will update you with proper details on 13th october 2020. Until then,we appreciate your patience.

Regards,
Balamurugan.Thirumalaikumar


AR Arulpriya Ramalingam Syncfusion Team October 13, 2020 06:10 PM UTC

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 further      
   
    
The 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   



EM Eddy MARIANNE replied to Arulpriya Ramalingam October 16, 2020 08:09 PM UTC

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 further      
   
    
The 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   


Hello.

Thank you for considering the bug.

The project uses 18.3460.0.35 version. It'd be great to get a patch now if possible.


BT Balamurugan Thirumalaikumar Syncfusion Team October 19, 2020 06:16 PM UTC

Hi Eddy, 
  
Thank you for your patience, 
  
The issue with  
has been fixed and the patch for this fix can be downloaded from the following location.  
 
You can use OnClick Event and Set SwitchVisualStyle as false to achieve your query. When we set SwitchVisualStyle, the view would not change until to set SwitchVisualStyle as true. Please refer to the sample and patch below. 
 
  
Recommended approach - exe will perform automatic configuration  
Please find the patch setup from below location:  
  
Advanced approach – use only if you have specific needs and can directly replace existing assemblies for your build environment  
Please find the patch assemblies alone from below location:  
  
Assembly Version: 18.3.0.35 
Installation Directions :  
This patch should replace the files “Syncfusion.Schedule.Windows.dll” under the following folder.  
$system drive:\ Files\Syncfusion\Essential Studio\18.3.0.35\precompiledassemblies\18.3.0.35\4.6  
Eg : $system drive:\Program Files\Syncfusion\Essential Studio\18.3.0.35\precompiledassemblies\18.3.0.35\4.0  
  
To automatically run the Assembly Manager, please check the Run assembly manager checkbox option while installing the patch. If this option is unchecked, the patch will replace the assemblies in precompiled assemblies’ folder only. Then, you will have to manually copy and paste them to the preferred location or you will have to run the Syncfusion Assembly Manager application (available from the Syncfusion Dashboard, installed as a shortcut in the Application menu) to re-install assemblies.  
  
Note :  
You can change how you receive bug fixes by navigating to the following link and updating your preferences.  
  
  
Disclaimer :  
Please note that we have created this patch for version 18.3.0.35 specifically to resolve the following issue(s) reported in this/the forum(s). 158431 
If you have received other patches for the same version for other products, please apply all patches in the order received.  
This fix will be included in our upcoming release 2020 Volume3 Sp1 which will be available in mid of November 2020.  
  
Thanks & Regards, 
Balamurugan Thirumalaikumar 




EM Eddy MARIANNE October 20, 2020 01:09 AM UTC

Hi !

Thank you for the patch.

However the links give me an "you're not authorized to download this patch" message...


BT Balamurugan Thirumalaikumar Syncfusion Team October 20, 2020 04:19 PM UTC

Hi Eddy, 
 
Sorry for the Inconvenience. 
 
Unauthorized message due to certain some internal conflicts at our end. We have fixed that you can now download the patch file.find the patch below 
  
The issue with  
has been fixed and the patch for this fix can be downloaded from the following location.  
  
Recommended approach - exe will perform automatic configuration  
Please find the patch setup from below location:  
  
Advanced approach – use only if you have specific needs and can directly replace existing assemblies for your build environment  
Please find the patch assemblies alone from below location:  
  
Assembly Version: 18.3.0.35 
Installation Directions :  
This patch should replace the files “Syncfusion.Schedule.Windows.dll” under the following folder.  
$system drive:\ Files\Syncfusion\Essential Studio\18.3.0.35\precompiledassemblies\18.3.0.35\4.6  
Eg : $system drive:\Program Files\Syncfusion\Essential Studio\18.3.0.35\precompiledassemblies\18.3.0.35\4.0  
  
To automatically run the Assembly Manager, please check the Run assembly manager checkbox option while installing the patch. If this option is unchecked, the patch will replace the assemblies in precompiled assemblies’ folder only. Then, you will have to manually copy and paste them to the preferred location or you will have to run the Syncfusion Assembly Manager application (available from the Syncfusion Dashboard, installed as a shortcut in the Application menu) to re-install assemblies.  
  
Note :  
You can change how you receive bug fixes by navigating to the following link and updating your preferences.  
  
  
Disclaimer :  
Please note that we have created this patch for version 18.3.0.35 specifically to resolve the following issue(s) reported in this/the incident(s). 158431 
If you have received other patches for the same version for other products, please apply all patches in the order received.  
This fix will be included in our upcoming release 2020 Volume3 Sp1 which will be available in mid of November 2020..  
  
Thanks & Regards, 
Balamurugan Thirumalaikumar 



Loader.
Up arrow icon