2022.11.22 04:42 AM
Data Grid Column has Hidden Attribute as shown in below screenshot. we can bind this attribute\property using View State Variable lets say. IsColumn1Hidden.
Now to drive column visible\Hidden setting, we have UI like below: where we give column name and checkbox. if checkbox is checked then we make that column hidden. checkbox value is bind to viewstate variable: IsColumn1Hidden
Query: We want to reverse this behavior. example. when I check this checkbox then We want to make column Visible. How can we achieve this ? [Not able to fig out how to apply negation on the view state variable]
2022.11.23 02:24 PM
Hi Vinor_Sarder,
You should be able to simply toggle the field visible by linking the viewstates as you've mentioned above.
If that's not working, you could create e.g. a button which triggers a data source (via run-query ) that inspects the current value of IsColumn1Hidden, negates it and maps that value back to IsColumn1Hidden
2022.11.23 02:24 PM
Hi Vinor_Sarder,
You should be able to simply toggle the field visible by linking the viewstates as you've mentioned above.
If that's not working, you could create e.g. a button which triggers a data source (via run-query ) that inspects the current value of IsColumn1Hidden, negates it and maps that value back to IsColumn1Hidden
2022.11.25 01:45 AM
Thanks. achieved solution on similar lines\Logic i.e. using result mapping. [not used run-query option]
EMEA
Tel: +44 (0)28 3025 2242
AMERICAS
Tel: +1 (212) 447 6700
APAC
Tel: +61 (0)2 9236 5700
KX. All Rights Reserved.
KX and kdb+ are registered trademarks of KX Systems, Inc., a subsidiary of FD Technologies plc.