ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
edit different columns when Creating/Editing with InlineCreate In Grid
Title:
B
I
{code}
?
For example I have a grid with 4 columns `id,name,adress,work` and in edit click I can only update `name,adress`, but when I create I have to enter `name,adress,work`. I have seen GridInlineEditConditional in the Demo and I want to know if I can apply something like that in my case with a condition create /edit
Save Changes
Cancel
imen
asked at 29 Apr 2020
Answers
B
I
{code}
?
yes, you could do it like in the conditional demo https://demo.aspnetawesome.com/GridInlineEditDemo/ConditionalDemo with a function like this: function workCond(o, params) { if (o.isCreate) return params[0]; return params[1]; } and have a create button like this: @Html.InlineCreateButtonForGrid(grid, new { isCreate = true })
Save Changes
Cancel
Omu
answered at 30 Apr 2020
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