ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
gridId return null in the DeleteGridController
Title:
B
I
{code}
?
We are using inlinegrid like this: @Html.InitDeletePopupForGrid("TipoPapelGrid", "DeleteGrid") @(Html.Awe().Grid("TipoPapelGrid") ... Save, Cancel, Edit work fine but DeleteGridController get the gridId with a null value in the following code: public ActionResult Delete(int id, string gridId) { string Campo = string.Empty; switch (gridId) { case "TipoPapelGrid": Campo = DbIerpPrint.Get<ProdTipoTrabajoPapelRowGrid>(id).DescTipo_Papel.ToString(); break; case "ProdDetGrid": Campo = DbIerpPrint.Get<ProdDetTipo_TrabajoRowGrid>(id).Desc_Procesos.ToString(); break; } return PartialView(new DeleteConfirmInput { Id = id, GridId = gridId, Message = string.Format(Mui.confirm_delete, Campo) }); } so what we suppose to review in order to get the name of gridId.
Save Changes
Cancel
Juan Equiz
asked at 25 Aug 2016
we're not using the gridId in the demos anymore, we just forgot to remove the parameter; but if you need to send additional parameters to the PopupForm you can use the .Parameter extension on the InitPopupForm helper
at 04 Sep 2016
Omu
Answers
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