ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Scripts fails after upgrading from trial
Title:
B
I
{code}
?
Hello! Used trial version for several months. Today, I decided to buy license and upgraded my trial version. I had updated all bin and js files, but not, awesome grid fails with error: Uncaught TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'. at fi (AwesomeMvc.js:1) at Object.ip (AwesomeMvc.js:1) at HTMLDocument.<anonymous> (Workplace:96) at i (jquery-1.12.4.min.js:2) at Object.fireWith [as resolveWith] (jquery-1.12.4.min.js:2) at Function.ready (jquery-1.12.4.min.js:2) at HTMLDocument.K (jquery-1.12.4.min.js:2)
Save Changes
Cancel
Aleksander Seregin
asked at 15 Oct 2017
Huh, Fixed after replacing GridUtils and Crudhelper from the latest DEMO solution. By the way, there are some errors in GridUtils.cs with escaping quotes in jquery code. In your demo: attrdict.Add("id", $"gbtn{popupName}.{key}"); How should it be: attrdict.Add("id", "$(\"gbtn{popupName}.{key}\")");
at 15 Oct 2017
Aleksander Seregin
on the `GridUtils.EditFormatForGrid` if you set `setId:true` it will give the button an id and this will help if the popup is a dropdown and you're resizing the browser on a grid with autohide columns (on resize the grid will render, and the button needs to identify the opener again), it works ok, there's no problem; you can try it in the main demo if in CrudHelpers you set .Mod(o => o.Dropdown()) for the Edit popup and `setId:true` on the edit button
at 15 Oct 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