ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Can we pass custom value and model bound value as a parent for grid ?
Title:
B
I
{code}
?
grid code: .Parent(o => o.Id, "id") .Parent("123", "test") Can we pass above combination as a parent for the grid ? When I used above combination I was able to get id value at back-end but test value was empty.
Save Changes
Cancel
bsave
asked at 15 Jan 2019
Answers
B
I
{code}
?
if you want to pass a value you can use `.Parameter(name, value)` or `.ParameterFunc(jsfunc)` the jsfunc can return `{ name1: val1, name2: val2 }` `Parent(controlId, paramName = "parent")` is for binding to other controls so that when the parent changes the child reloads and also uses the parent values as parameters
Save Changes
Cancel
Omu
answered at 15 Jan 2019
Thanks, It worked.
at 15 Jan 2019
bsave
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