ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Can i create dynamic parent of grid depend Viewdata ?
Title:
B
I
{code}
?
I would like to add `.Parent` depending on ViewData values @(Html.Awe().Grid("AgencysGrid") Url(Url.Action("GridGetItems", "Agencys")) .Parent("lawArticle_idOnly", "lawArticle_idOnly") <--- have if ViewData["only"] == true .Parent("lawArticle_idOnly", "lawArticle_idExclude") <--- have if ViewData["exclude"] == true
Save Changes
Cancel
nutfergie
asked at 26 Oct 2017
Answers
B
I
{code}
?
goes something like this: @{ var grid = Html.Awe().Grid("grid1")... if(ViewData["only"}) { grid.Parent(... } } @grid
Save Changes
Cancel
Omu
answered at 26 Oct 2017
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