App wide Default time zone and date format

Hi 

  • As of now EJ2 takes utilizes the system timezone as the default one, Is it possible to set another default timezone based on the logged in user. My use case is that users of the app may login to the app from another time zone but they need to view it based on the logged in Branch's timezone. As of now I have hundreds of datetpickers in the app and it would be cumbersome to update induvidually to all the pickers.
  • Also I would like to set the default date format. It now uses the system locale dateformat. Again is there any way to set app wide Dateformat for date picker
  • Another issue I face is with the ej2 grid. When I use dialog mode edit and the first control in the dialog is an ej2 combo it does not get focus. The focus goes to an html text input. How do I set the focus to the ej2 Combo
  • Using EJ2 combo or drop down list is there a way to show frequently used/favourite items on the top of the list


1 Reply

SN Sevvandhi Nagulan Syncfusion Team May 18, 2020 01:34 PM UTC

Hi Sahal, 


Greetings from Syncfusion support. 

Query 1:  As of now EJ2 takes utilizes the system timezone as the default one, Is it possible to set another default timezone based on the logged in user. My use case is that users of the app may login to the app from another time zone but they need to view it based on the logged in Branch's timezone. As of now I have hundreds of datetpickers in the app and it would be cumbersome to update induvidually to all the pickers. 


Response:  
 
 
We would like to inform you that, the DatePicker component will be rendered based on the System timezone.  In your case, if you have branches, use the serverTimezoneOffset property to handle the timezone for branch.  You can give the branch timezone in the serverTimezoneOffset property to display the Date value based on the branch timezone.  



  
Query 2: Also I would like to set the default date format. It now uses the system locale dateformat. Again is there any way to set app wide Dateformat for date picker 


Response: 
You can customize a format based on your own using the format property. 


 
Query 3:  Another issue I face is with the ej2 grid. When I use dialog mode edit and the first control in the dialog is an ej2 combo it does not get focus. The focus goes to an html text input. How do I set the focus to the ej2 Combo 


Response:  
 
You can manually focus the ComboBox component using the public method focusIn. Kindly refer the below code, 
 
       this.comboObj.focusIn(); 
 
 
 



Query 4: Using EJ2 combo or drop down list is there a way to show frequently used/favourite items on the top of the list 


You cannot reorder the list items in the DropDownList based on the selected item since it is single selection. But you can show the selected item in the top of the list in the MultiSelect component using the enableSelectionOrder property. 



 
Regards, 
Sevvandhi N 


Loader.
Up arrow icon