Hi, while playing around with ListGrid I discovered a behavior that I couldn't wrap my head around.
The method grid.setRecordEnabledProperty() is used to determine if a record is enabled or not.
Say you have an attribute called banana, and you set that in the method. If a record has banana=false, the row will display as disabled and cannot be interacted with.
I thought I wanted to turn that feature off, i.e. all records are enabled, always.
So, I called that method with null. What happened is that no records are displayed in the disabled style, but no row can be selected or clicked on! The only trigger is that there is a hover change to row color.
Is this intended behavior? I guess I could set that value to an attribute that doesn't exist in the record, it seems to work, but can you turn the feature off? Cheers
The method grid.setRecordEnabledProperty() is used to determine if a record is enabled or not.
Say you have an attribute called banana, and you set that in the method. If a record has banana=false, the row will display as disabled and cannot be interacted with.
I thought I wanted to turn that feature off, i.e. all records are enabled, always.
So, I called that method with null. What happened is that no records are displayed in the disabled style, but no row can be selected or clicked on! The only trigger is that there is a hover change to row color.
Is this intended behavior? I guess I could set that value to an attribute that doesn't exist in the record, it seems to work, but can you turn the feature off? Cheers
Comment