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 editing delete popup issue
Title:
B
I
{code}
?
For me edit create function works fine but when I add @Html.InitDeletePopupForGrid("Grid1", "CNName") for delete functionality I get this error System.Web.Mvc.HtmlHelper<TT.Models.TTModel>' does not contain a definition for 'InitDeletePopupForGrid' and no extension method 'InitDeletePopupForGrid' accepting a first argument of type 'System.Web.Mvc.HtmlHelper<TT.Models.TTModel>'
Save Changes
Cancel
ssantysiak
asked at 12 Jul 2017
you can copy the `InitDeletePopupForGrid` helper from the main demo `CrudHelpers.cs` ([http://aspnetawesome.com/Download/MvcDemoApp download]), and you'll need to import the type in the view, viewimports or web.config, depends what version of asp.net you're using
at 12 Jul 2017
Omu
Thanks it works but now popup on click of delete function is not showing up. I did add Delete.cshtml in Shared folder as it is in demo project. In web browser console I see Uncaught TypeError: Cannot read property 'close' of undefined at HTMLButtonElement.click (http://localhost:60677/Scripts/AwesomeMvc.js:1:39413) at Function.jQuery.access (http://localhost:60677/Scripts/jquery-2.1.4.js:3505:44) this error
at 13 Jul 2017
ssantysiak
can't say much without seeing the grid code, you should edit the question and add it, also you can look at the demo http://demo.aspnetawesome.com/GridInlineEditDemo and copy step by step
at 13 Jul 2017
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