KX Community

Find answers, ask questions, and connect with our KX Community around the world.

Home Forums KX Solutions Data Grid Column Hidden Attribute

  • Data Grid Column Hidden Attribute

    Posted by vinod_sardar on November 22, 2022 at 12:00 am

    Data Grid Column has Hidden Attribute as shown in below screenshot. we can bind this attributeproperty using View State Variable lets say. IsColumn1Hidden.

     

    Now to drive column visibleHidden 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]

    vinod_sardar replied 2 months, 1 week ago 2 Members · 2 Replies
  • 2 Replies
  • davidcrossey

    Member
    November 23, 2022 at 12:00 am

    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

  • vinod_sardar

    Member
    November 25, 2022 at 12:00 am

    Thanks. achieved solution on similar linesLogic i.e. using result mapping. [not used run-query option]

     

Log in to reply.