Conditional Select Columns
Opened this issue · 1 comments
Add the ability for the check boxes in a SelectColumn to be visible or invisible based upon some boolean value in the grid or perhaps a lambda expression. This would allow for the checkboxes to be invisible rows that you don't want the user to be able to select.
Also, this could be applied to buttons as well. The button state could be determined by a boolean value in the grid or a lambda expression.
Buttons should probably be handled client side and/or ajax. I see two ways
to go about it:
- An addition to the EnableOnSelection, where it only enables if selected
and also the operation is allowed to be done. Of course, with this we need
to figure out how to handle both allowed and not allowed at once. - A pre-action check like ConfirmMessage, but with custom logic. Hit the
js or ajax, if not allowed show a message. This could be the solution to
the combination selection -- message could show the items it will apply to
and the ones it won't apply to and ask for continue or not.
Either way, We could allow setting a javascript function name and/or an
AJAX handler URL that gets hit with the selected ids and returns true/false
with an optional message to show.
On Wed, Feb 25, 2015 at 4:33 PM, Nick DeVore notifications@github.com
wrote:
Add the ability for the check boxes in a SelectColumn to be visible or
invisible based upon some boolean value in the grid or perhaps a lambda
expression. This would allow for the checkboxes to be invisible rows that
you don't want the user to be able to select.Also, this could be applied to buttons as well. The button state could be
determined by a boolean value in the grid or a lambda expression.—
Reply to this email directly or view it on GitHub
#39.