Re: Multi-row headers

瀏覽次數:64 次
跳到第一則未讀訊息

Steve Fazekas

未讀,
2015年1月2日 上午9:43:522015/1/2
收件者:slic...@googlegroups.com

You may need to update the core or slickgrid JS file in order to achieve that.
Where it writes: slick-header  <div class=slick-header>

There have been a post or two requesting this, so probably expect to create / modify a specific version of your SlickGrid file just for this purpose.  I have not worked with SlickGrid in a while, so I could not tell you exactly all that you would need to write in order achieve your expected design.
---

I don't know if the example / version this person wrote below has much to do with mliebman's master repo.

You could perform a diff and see how it was constructed.
http://hariharanpalani.github.io/SlickGrid/examples/example-HeaderGrouping.html

He has defined his columns in the example with "columns" under ones which have multiples.
        var columns = [
                { id: "title", name: "Title", field: "title", width: 200 },
                {
                    id: 'common',
                    name: 'Common Factor',
                    columns: [
                           { id: "duration", name: "Duration", field: "duration", width: 200 },
                { id: "%", name: "% Complete", field: "percentComplete", width: 200 }
                    ]
                },

                {
                    id: "Period", name: 'Period',
                    columns: [
                         { id: "start", name: "Start", field: "start", width: 200 },
                         { id: "finish", name: "Finish", field: "finish", width: 200 }
                    ]
                },
                {
                    id: 'effortdriven',
                    name: 'Effort-Driven',
                    columns: [
                        { id: "effort-driven1", name: "Effort Driven 1", field: "effortDriven", width: 200 },
                        { id: "effort-driven2", name: "Effort Driven 2", field: "effortDriven", width: 200 }

                    ]
                },
        ];

Give that a ganders...

Steve Fazekas

Roger Dueck

未讀,
2015年1月5日 上午9:45:392015/1/5
收件者:slic...@googlegroups.com
Thanks Steve!

Roger Dueck
Programmer
McMillan McGee Corp. 

Direct:  403.569.5120
Cell:  403.710.3421
Fax: 403.272.7201

Visit us at www.mcmillan-mcgee.com

This email and attachments may contain confidential information intended solely for the addressee(s) as indicated above. If you are not the intended recipient of this document, please notify sender immediately and destroy all copies. Disclosure, reproduction, distribution or any other use is prohibited and unlawful. Thank you. Please consider the environment before printing this email.

--
You received this message because you are subscribed to the Google Groups "SlickGrid" group.
To unsubscribe from this group and stop receiving emails from it, send an email to slickgrid+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

回覆所有人
回覆作者
轉寄
0 則新訊息