ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Grid Inline Edit Reference row data
Title:
B
I
{code}
?
Hello Is it possible to do Html.Awe().Grid() .Columns( new Column {Bind = "Category"}, new Column {Bind = "Food"} .Mod(o => o.Inline(Html.Awe().AjaxRadioList("Food").Url(Url.Action("GetFood","DropDownHelper", new { reference to the data value from column "Category"}))))) p.s. Column Category will be static (non editable)
Save Changes
Cancel
Sean
asked at 16 Jun 2016
Answers
B
I
{code}
?
in awem.js find this code: str = str.split('#Value').join(value); str = str.split('#Prefix').join(prefix); add this after: for (var key in model) { str = str.split("." + key).join(model[key]); } now you can write .Url(Url.Action("GetAllMeals","Data", new { catId = ".Category" }) and for the readonly Category you can do: new Column {Bind = "Category"}.Mod(o => o.Inline(".CategoryName<input type='hidden' name='Category' value='#Value'"), I assume Category is an Id and that in the GridModelBuilder.Map you have a property CategoryName = Category.Name
Save Changes
Cancel
Omu
answered at 16 Jun 2016
Thank you for your help. Will try this out.
at 17 Jun 2016
Sean
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