Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

1. Date picker data

The Date Picker has been re-factored to minimize the code required to use it. Converting to Eth calendar when rendering it on views is no more required. Converting dates to back to GC at the controllers is not required either.

...

  1. During view rendering, the ExpiryDate will show the Ethiopian Date.
  2. During form submit model.ExpiryDate will have the Gregorian Date.
 

2. Date fields label


Rendering Date label based on user date preference, If user date preference is Ethiopian date "(EC)" will be used or if  Gregorian "(GC)" will be used otherwise.

 Example , let's take ExpiryDate 

   Case 1: If ExpiryDate is on the form use 

 

Code Block
languagec#
titleExample Usage
firstline1
linenumberstrue
 @Html.LabelFor(model => model.ExpiryDate ,new {@class="cats-date-pref"})

  Case 2:If ExpiryDate is on the Kendo Grid

Code Block
languagec#
titleExample Usage
firstline1
linenumberstrue
    columns.Bound(p => p.ExpiryDate).HeaderHtmlAttributes(new { @class = "cats-date-pref-grid" }).Width(160);