ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Error in input popup with DateTime (Slice(0))
Title:
B
I
{code}
?
Hi, since I installed latest and paid version of awe, I'm getting errors in my input CRUD popups (Edit or Add); I have two datetime fields which are supposed to be edited with the calendar popup. when I Add or Edit the first time, I can see an error in JS console: Can you see why this is happening ? Txs -Vince I checked the value of cd(): cd() {GridInfo: "of {0} items", Select: "please select"} cd().Months; undefined cd().Days() undefined cd().Days.slice(0); awem.js:4374 Uncaught TypeError: Cannot read property 'slice' of undefined at Object.dtp [as dpw] (awem.js:4374) at Object.dtp (AwesomeMvc.js:1) at HTMLDocument.eval (eval at <anonymous> (jquery-1.12.4.min.js:2), <anonymous>:1:23) at i (jquery-1.12.4.min.js:2) at Object.add [as done] (jquery-1.12.4.min.js:2)
Save Changes
Cancel
vRITHNER
asked at 22 Apr 2018
`cd().Days` and `Months` are set in `awem.js` they should have value unless you set them again with `undefined`, usually you would set them for localisation as explained here: https://www.aspnetawesome.com/learn/mvc/general#Localising-default-texts ; you can search in `awem.js` for `var clientDict` to see the original `cd()`
at 22 Apr 2018
Omu
txs. found my clientDict was old from previous demo. txs
at 24 Apr 2018
vRITHNER
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