Design and CSS styles
Version 7.x > Design and CSS styles > jQuery UI Dialog View modes: 
User avatar
Member
Member
positivepurchasing - 7/8/2013 9:24:54 AM
   
jQuery UI Dialog
Hi,

I'm trying to use the jQuery UI dialog using the Kentico jQuery files in the '/CMSScripts' folder. It seems to work OK except that the background of the dialog is transparent.

Does anyone have any ideas what could be wrong?
(I'm using 'jQuery' rather than '$')

Cheers
Paul.

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 7/8/2013 2:07:04 PM
   
RE:jQuery UI Dialog
When adding the jQuery UI scripts to the page, set the include CSS value to false and add it in the page header manually. This will allow the jQuery UI styles to be loaded after your site specific files and still allow you to override some of the styles classes and still use the "built-in" styles.

I believe all I did was add the classes below to my stylesheet and it worked as expected:
.ModalBackground, .modalBackground { z-index: 20100 !important; background-color: #262B33; filter: alpha(opacity=70); opacity: 0.7; }

User avatar
Member
Member
positivepurchasing - 7/9/2013 4:02:57 AM
   
RE:jQuery UI Dialog
Hi FroggEye,

Thank you for your reply.

I don't understand the 'set the include CSS value to false' part. Is this a setting in Kentico or something else?

Cheers
Paul.

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 7/9/2013 8:22:48 AM
   
RE:jQuery UI Dialog
I use this in my master page to include the jQuery UI by default on all pages. The las parameter includes/excludes the style sheet.
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
CMS.GlobalHelper.ScriptHelper.RegisterJQueryUI(this.Page, false);
}
</script>

User avatar
Member
Member
positivepurchasing - 7/10/2013 5:39:44 AM
   
RE:jQuery UI Dialog
Hi FroggEye,


Thanks, I get it now and it works as expected. Cool!


Cheers
Paul.