Skip to main content
kavyam0002
September 8, 2023
Solved

link showwhen in grid

  • September 8, 2023
  • 6 replies
  • 0 views

i have added a link in a selectable grid, when we select that row then the link should be enabled how to configure that

    Best answer by stefanhelzle0001

    You probably have a local variable you use to store the selected rows. You just have to check whether the list of selected rows contains that row.

    6 replies

    stefanhelzle0001
    Brainy
    September 8, 2023

    You probably have a local variable you use to store the selected rows. You just have to check whether the list of selected rows contains that row.

    kavyam0002
    September 8, 2023

    at same time when i select other row both links are disappeared 

    stefanhelzle0001
    Brainy
    September 8, 2023

    Then you condition is wrong. Wanna share some code?

    Inspiring
    September 8, 2023

    To achieve this, save the selection in a local variable, and then in the showWhen parameter of the link, check if the row is selected or not. You can check this by using the contains() function.
    Just give it a try ;)