web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

MS CRM 2011 - How to style jQuery UI dialog?

(0) ShareShare
ReportReport
Posted on by 80

In MS CRM 2011 (on premise), I have javascript function on entity form which invokes jQuery UI dialog (attached to onSave event). As I have not included any jQuery UI CSS files, it's layout is horrible.

How can I include some jQuery UI CSS file on CRM entity form to style this dialog?

I have also tried to use dialogClass and pass in some MS CRM CSS class, but have not found anything that looks at least decent.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    ScottDurow Profile Picture
    21 on at

    Hi,

    You will need to create your own jQuery UI CSS that looks like the CRM UI - since the two are not compatible.

    You can look at my project www.SparkleXrm.com for an example of a CRM jQuery UI style css.

    Hope this helps,

    Scott

  • IvanJovovic Profile Picture
    80 on at

    Thanks Scott,

    Once I create CSS file, how do I include that file into my CRM solution and apply it to jQuery UI dialog on entity form?

    Ivan

  • Suggested answer
    ScottDurow Profile Picture
    21 on at

    Hi Ivan,

    You will need to load the CSS dynamically using something like

    var cssLink = $("<link rel='stylesheet' type='text/css' href='"+href+"'>");

        $("head").append(cssLink);

    Be aware that this approach is VERY unsupported. You might be better off using a slightly less unsupported technique - a33ik.blogspot.co.uk/.../step-by-step-creating-dialog-windows.html

    Hope this helps!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans