DmitryEfimenko / TwitterBootstrapMvc

Fluent implementation of ASP.NET-MVC HTML helpers for Twitter Bootstrap.
Apache License 2.0
224 stars 79 forks source link

VisibleDependsOn based on a value not being equal or a list of values #254

Open goreckia opened 10 years ago

goreckia commented 10 years ago

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".

DmitryEfimenko commented 10 years ago

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.