tornadofx-controlsfx
tornadofx-controlsfx copied to clipboard
Multiple columnfilter
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)
}
}
I found a solution if tableFilter.columnFilter is call totaly random works with all filter without define columnfilter
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