tornadofx-controlsfx icon indicating copy to clipboard operation
tornadofx-controlsfx copied to clipboard

Multiple columnfilter

Open maxrode opened this issue 6 years ago • 2 comments

When columnfilter is called more than once in the same table it issues an error : java.lang.Exception: TableFilter not initialized!

Table structure :

override val root = form {
        tableview(data) {
            readonlyColumn("fid", ProcessModel::fid) { columnfilter { } }
            readonlyColumn("spid", ProcessModel::spid) { columnfilter {  }}
            readonlyColumn("status", ProcessModel::status)
            readonlyColumn("loginame", ProcessModel::loginame)
            readonlyColumn("origname", ProcessModel::origname)
            readonlyColumn("hostname", ProcessModel::hostname)
            readonlyColumn("blk_spid", ProcessModel::blk_spid)
            readonlyColumn("dbname", ProcessModel::dbname)
            readonlyColumn("tempdbname", ProcessModel::tempdbname)
            readonlyColumn("cmd", ProcessModel::cmd)
            readonlyColumn("block_xloid", ProcessModel::block_xloid)
        }
    }

maxrode avatar Jan 03 '19 10:01 maxrode

I found a solution if tableFilter.columnFilter is call totaly random works with all filter without define columnfilter

maxrode avatar Jan 03 '19 11:01 maxrode

Hmmmm... something doesn't make sense here. I'll take a look later.

https://github.com/edvin/tornadofx-controlsfx/blob/master/src/main/kotlin/tornadofx/controlsfx/Controls.kt#L47-L53

thomasnield avatar Jan 03 '19 18:01 thomasnield