Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conditional Select Columns #39

Open
nickdevore opened this issue Feb 25, 2015 · 1 comment
Open

Conditional Select Columns #39

nickdevore opened this issue Feb 25, 2015 · 1 comment

Comments

@nickdevore
Copy link
Contributor

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.

@programcsharp
Copy link
Owner

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 [email protected]
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants