ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: dreams 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?
-
https://img-blog.csdnimg.cn/20190329202504327.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl80NDU0NDQ2NQ==,size_16,color_FFFFFF,t_70(https://img-blog.csdnimg.cn/20190329202504327.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl80NDU0NDQ2NQ==,size_16,color_FFFFFF,t_70)
-
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.
-
非常感谢!!!