ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Cannot read property 'Ok' of undefined. aweui.js
Title:
B
I
{code}
?
I just upgraded to the MVC/Core 6.3 version to get grid filtering working. I came accross the following error: Uncaught TypeError: Cannot read property 'Ok' of undefined at Object.modCfg (aweui.js:980) at initPopup (aweui.js:294) at Object.initPopupForm (aweui.js:973) at HTMLDocument.<anonymous> ((index):162) at e (jquery.min.js:2) at t (jquery.min.js:2) The filter button did not work either. I managed to solve the problem by changing Line 12: function dict() { return aweui.dict; } to function dict() { return awedict; } Have I done the right thing, or am I missing something?
Save Changes
Cancel
George Baini
asked at 23 Jan 2020
Answers
B
I
{code}
?
Seems that you're using `aweui.js` without having it initialized, basically you first reference aweui.js, awedict.js and after call `aweui.init()` have a look here: https://www.aspnetawesome.com/learn/mvc/Installation#aweui or here if you're using it without asp.net https://www.aspnetawesome.com/learn/aweui/Installation
Save Changes
Cancel
Omu
answered at 23 Jan 2020
Thanks, I had @Html.Awe().Init() before the aweui references were loaded. All working perfect
at 23 Jan 2020
George Baini
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