ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Buttons not correctly displayed in Popupform
Title:
B
I
{code}
?
In grid CRUD with Popupform (edit, create, delete) the buttons (close, ok, cancel) are not correctly displayed. I checked the generated code. In your demo (Grid crud popup) the code for the close button is : <button title="Close" role="button" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-icon-only ui-dialog-titlebar-close" type="button"> <span class="ui-button-icon-primary ui-icon ui-icon-closethick"></span> <span class="ui-button-text">Close</span> </button> On our application it's : <button class="ui-dialog-titlebar-close" type="button"> How is this possible since we used your demo as basis for our application (same code in InitCrudPopupsForGrid) ?
Save Changes
Cancel
cram31
asked at 06 Apr 2016
this button is generated by jQueryUI.js, maybe you're using a different version
at 06 Apr 2016
Omu
Thanks a lot. JQuery-ui was already in, but not at the right place. We moved it down in our js file list and now it's working as expected. Seems that some other js files impacted the behaviour.
at 07 Apr 2016
cram31
jQueryUI.js needs to be after jQuery.js because it depends on it, bootstrap.js can interfere with it but there's a call to $.fn.button.noConflict(); in _Layout.cshtml that fixes that
at 07 Apr 2016
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