Detect inline checkbox "All" of a grid (or how to forbid the click)

Certified Senior Developer

Hi,

I've coded a mecanism to validate the inline checkbox autorization in a grid, but now I need to ensure the user can't click on the All checkbox.

Is it possible ? if not, is it possible to detect that the user has clicked on that All checkbox (without comparing the count of checked rows with the total rows count) ?

Regards 

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    What's your use case exactly?  This is fairly easy to do when dealing with grids where you're enforcing that only one item can be selected; it'll be slightly harder (due mainly to more complicated corner cases) if you're dealing with one where you want to allow multi selection.  In short, you can manipulate the saveInto such that it intercepts the new value and tests how many items have been selected, and generally if the new selection is greater than 1 item, disregard the new selection.

Reply
  • 0
    Certified Lead Developer

    What's your use case exactly?  This is fairly easy to do when dealing with grids where you're enforcing that only one item can be selected; it'll be slightly harder (due mainly to more complicated corner cases) if you're dealing with one where you want to allow multi selection.  In short, you can manipulate the saveInto such that it intercepts the new value and tests how many items have been selected, and generally if the new selection is greater than 1 item, disregard the new selection.

Children