TwitterBootstrapMvc
TwitterBootstrapMvc copied to clipboard
VisibleDependsOn based on a value not being equal or a list of values
Is there any way to specify VisibleDependsOn for a value that does not exist or multiple values? For example, show a TextBox if a value of a DropDownList is not "please select" or if a value matches "a", "b", or "c".
VisibleDependsOn
was built to handle simple situations.It's kind of hard to come up with a server side syntax to make this control flexible enough to cover all situations. I'd suggest you use AngularJs or Knockout.js to handle visibility for your cases. These tools are way better for this specific purpose.