Posts

How to enable TLS 1 2 Client on Windows

 How to enable TLS 1 2 Client on Windows: With some very old application the underlying HTTP server needs to support https requests that are supported by TLS 1 or 2.  This is a common error when you want to call https urls with certificate errors. Error messages could be  " An error occurred while making the HTTP request to <https url>" The solution for this issue is to add few registry entries so that we can call then again with successful responses.  For 32-bit applications that are running on 32-bit OSs and for 64-bit applications that are running on 64-bit OSs, update the following subkey values: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v2.0.50727]       "SystemDefaultTlsVersions" = dword:00000001       "SchUseStrongCrypto" = dword:00000001 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v4.0.30319]       "SystemDefaultTlsVersions" = dword:00000001       "SchUseStrongCrypto" = dword:00000001 For 32-bit applica

Date Formatting in Kendo Grid and Handling Timezone

 In Kendo Grid, the dates are formatted to ' Mon Feb 01 2021 02:03:04 GMT+0530 (India Standard Time) '. To convert to a specific format or specific time zone we can try below options.  "kendo.parseDate(data.CreatedDate)" -- to keep the date data type same and convert to the local browser's timezone "kendo.parseDate(data.CreatedDate, 'MM-dd-yyyy')" -- to keep the data data type and format the data type to the local browser's timezone "kendo.toString(kendo.parseDate(data.CreatedDate), 'MM/dd/yyyy hh:mm:ss tt" -- to format the date to string format with whatever timezone it has received from the server. This converts hours into 12 hour format. when you replace hh with HH it will give 24 hour format.  For converting to specific timezone, we can try the below.. "CreatedDate.toLocaleString("en-US", {timeZone: "America/New_York"})" -- Works only in Chrome and Forefox. For IE, it throws an error.  "Cre

How run Docker for Desktop on Windows 10 with Anti-virus installed

 Docker for desktop depends on the machine's virtualization capabilities. In organizations, work machines are installed with anti virus software and this software do not allow to run the vmcompute.exe executable. This causes the Docker for Desktop to not to start the engine and run the daemon for container configuration. This security setup by your anti virus software is enforced as part of code flow guard. To override this default setting in the anti-virus software we need add an exception to ignore this setting. From windows 10, these restrictions are enforced as part of Windows Security Features. We can override this setting by following the below steps. (You can try these options after Hyper-V and WSL is properly setup on the machine for Windows Features) 1, Open "Windows Security" 2, Open "App & Browser control" 3, Click "Exploit protection settings" at the bottom 4, Switch to "Program settings" tab 5, Locate "C:\WINDOWS\System3

Kendo Grid Advanced Scenarios

Kendo Grid Examples Advanced: 1) Add Footer Templates for the grid. Manipulate them to show as custom table cells. 2) Add Client Templates for the columns.  3) Adding row numbers for the Grid rows. 4) Adding custom comments functionality for Edit mode and Read mode.  5) Conditionally add Edit and Add buttons for the Grid and formatting these buttons. 6) Custom Delete functionality for the Grid in Inline Grid Edit mode.  7) Add kendo conditional logic to the client template columns. 8) Adding DropdownLists for Kendo Editor Templates. 9) Date and Currency formatting for the Kendo Grid columns. 10) Using data source events for errors and sync. 11) Using DataBound and DataBind events for Aggregates manipulation and edit mode manipulations.  JavaScript: -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------