ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
How to make a cell read-only conditionally on the client side based on another cell value?
Title:
B
I
{code}
?
I need to show an AJAX Dropdownlist with list of values to select only if another cell's value is "Yes".
Save Changes
Cancel
Ren
asked at 04 May 2023
You can have a look at this demo: https://demo.aspnetawesome.com/GridInlineEditDemo/ConditionalDemo
at 05 May 2023
Omu
Thanks for the reply. I think I found the answer as you have in the Conditional Demo example, where the Date field is conditionally read-only. (Code below from your example) new Column { Bind = "Date", Width = 170 } .Mod(o => o.InlineFunc("dateCond") .Inline("<input type='hidden' name='Date' value='#Value'/>#Value") .Inline(Html.Awe().DatePicker("Date"))),
at 05 May 2023
Ren
Answers
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