DateInput support for weeknumber

Posted by: seaninglis on 20 September 2022, 6:01 am EST

  • Posted 20 September 2022, 6:01 am EST

    I have a requirement identical to this user:

    https://www.grapecity.com/forums/wijmo/week-number-in-wjinputdate_1

    i.e. that when a calendar-based date picker is displayed, the week number is shown on the calendar itself.

    Have things move on from then, or is there still no support for showing the week number on the calendar?

    This link from Kendo UI makes the requirement clear:

    https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/week-num-column/

    If this isn't supported out of the box, is there any way to add the week number manually to the control?
  • Marked as Answer

    Replied 20 September 2022, 10:43 pm EST

    Hi,

    Sorry, but we currently don't have this feature in Calendar Controls or in the InputDate. However, you can use the 'formatItem' property to add weeks count to the control and add some custom CSS to get the desired output.

    You can refer to this sample for full implementation: https://stackblitz.com/edit/angular-bmmcx5?file=src%2Fapp%2Fapp.component.ts

    Regards
  • Replied 20 September 2022, 11:24 pm EST

    Hi,

    We have a few different variations on how to calculate week numbers, but very easy to do with your example as a starting point - thanks for your help.

    Sean
  • Replied 21 September 2022, 5:39 pm EST

    Hi,

    We are glad that you were able to find the solution. Thank you for sharing the information with us.

    Regards
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels