ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Where are Action Get for Edit in GridInlineEditing?
Title:
B
I
{code}
?
hi to all friends I will not do anything full Tex-box was edited for operation.Tell me Action GET is about me The Grid explanation.? Code index: @Html.IInitCrudPopupsForGrid("FactorGrid", "Factor") @(Html.Awe().Grid("FactorGrid") .Mod(o => o.PageInfo().InlineEdit(Url.Action("Create"), Url.Action("Edit"))) .Url(Url.Action("FactorGridGetItems")) .Height(400).GroupBarText(UILocalize.Txt.Common.DragForGrouping) .Columns( new Column { Bind = "Id",Width = 50}, new Column { Bind = "Code", ClientFormat = ".EntCode", Header = "?? ????" , Width = 80 }.Mod(o => o.Inline(Html.Awe().TextBox("ProductCode"))), new Column { Bind = "ProductName", ClientFormat = ".EntProductName", Header = "??? ????" } .Mod(o =>o.Inline(Html.Awe().AjaxRadioList("ProductName") .Odropdown() // using custom extension that sets .Mod .Url(Url.Action("GetProducts", "Factor")))), new Column { Bind = "Price", ClientFormat = ".EntPrice", Header = "????" }.Mod(o => o.Inline(Html.Awe().TextBox("Price"))), new Column { Bind = "Date", ClientFormat = ".EntDate", Header = "?????",Width = 130} .Mod(o => o.Inline("<input type='text' style='width: 110px' class='Date' name='Date' placeholder='?????'/>")), new Column { Bind = "Count", ClientFormat = ".EntCount", Header = "?????",Width = 100}.Mod(o => o.Inline(Html.Awe().TextBox("FCount"))), new Column { Bind = "Description", ClientFormat = ".EntDescription", Header = "???????" }.Mod(o => o.Inline(Html.Awe().TextBox("Description"))), new Column { ClientFormat = GridUtils.InlineEditFormat(), Width = 60 } new Column { ClientFormat = GridUtils.InlineDeleteFormat("deleteFactorGrid"), Width = 70 } Create Is Okey but Edit's Problem,textboxs is not value this is code grid in controller: public ActionResult FactorGridGetItems(GridParams g) { var list = S_Factor.FactorList.AsQueryable(); // Db.Dinners.AsQueryable(); var gridModel = new GridModelBuilder<FactorDetails>(list, g) { Key = "Id", // needed when using EF, nesting, tree, client api GetItem = () => S_Factor.GetFactorDetailsById(Convert.ToInt32(g.Key)), Map = model => MapToGridModel(model) }.Build(); return Json(gridModel); } private static object MapToGridModel(FactorDetails o) { return new { Id = o.Id, EntCode=o.ProductCode, EntProductName = o.ProductName, EntPrice = o.Price, EntDate= S_Indicator.MiladiToShamsi(o.Date), EntCount = o.FCount, EntDescription = o.Description, EntTotalPrice = o.TotalPrice }; } please guide me
Save Changes
Cancel
dear
asked at 25 Aug 2016
The grid model is used for get, you need to follow the demo page exactly
at 26 Aug 2016
Omu
The problem is that when Edit fields will not fill please guide me better
at 27 Aug 2016
dear
Answers
B
I
{code}
?
Who was not a friend of our Help??
Save Changes
Cancel
dear
answered at 26 Aug 2016
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