ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
How to not call update on the grid after edit
Title:
B
I
{code}
?
I am calling `awe.open('editExpenseGrid', { params: { id: '165' } })` from my custom js function. I also have `@Html.InitCrudPopupsForGrid("ExpenseGrid", "ExpenseGrid")` on my page. The edit popup is displayed. I edit my data and click the "Ok" button to close the popup. However the pop does not close since it calls the update on the grid. The problem is that I am not displaying the grid on this page. Uncaught TypeError: Cannot read property 'update' of undefined Is there a way to bypass the update call?
Save Changes
Cancel
rakesh
asked at 18 Dec 2019
Answers
B
I
{code}
?
you can see inside the `InitCrudPopupsForGrid` (which is located in your solution) that there are 3 PopupForm calls, each has a `Success` js function defined (the js function that updates the grid), so in your case you want not to define the `Success` function for the Edit PopupForm
Save Changes
Cancel
Omu
answered at 18 Dec 2019
Thanks. It works.
at 18 Dec 2019
rakesh
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