ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Grid with checkbox as parent
Title:
B
I
{code}
?
Hello, I want to use a checkbox as parent for the grid but the value of the checkbox is always true. I define my checkbox as follow @Html.CheckBoxFor(model => model.boolVariable) And the grid definition: @(Html.Awe().Grid("MyGrid") .Parent(model => model.boolVariable, "boolVariable") ... ) I'm using version 3.5.1.1 of AweSome. Do you know what's the reason for this behavior? Kind Regards, Erwin
Save Changes
Cancel
erwin
asked at 01 May 2014
Answers
B
I
{code}
?
yes, the value of the checkbox is true regardless if it's checked or not you can try that by calling alert($('#boolVariable').val()) when it's unchecked http://aspnetawesome.com/forum/question/542/bind-grid-parameter-to-a-checkbox
Save Changes
Cancel
Omu
answered at 01 May 2014
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK