Author Topic: Date plus week as header instance?  (Read 2028 times)

dreams

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 21
    • View Profile
Date plus week as header instance?
« on: June 15, 2020, 09:53:44 am »
paramvir:Hello!To ask you about a matter, is there an example that the date plus the week is the header of the table?


paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Date plus week as header instance?
« Reply #2 on: June 15, 2020, 04:20:35 pm »
I'm afraid there is no such example. This is more of a business requirement question rather than a grid feature.

javascript Date object can help you to get dates in a given month and year.

e.g., (new Date( 2013, 2, 0)).getDate() returns number of days in Feb 2013 which you can use to fill colModel.

and (new Date( 2013, 2, date)).getDay() returns weekday which you can use to create nested colModel of a parent date column.

dreams

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: Date plus week as header instance?
« Reply #3 on: June 15, 2020, 05:25:56 pm »
非常感谢!!!