Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8093075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T20:25:31+00:00 2026-06-05T20:25:31+00:00

I am using datatable and dialog on same page, i would like to apply

  • 0

I am using datatable and dialog on same page, i would like to apply different themes for each. How do i achieve it? Currently my datatable theme is applied for both, how do i scope dialog.

Below is my dialog code

   $('#newVisit').dialog({
                modal: true,
                autoOpen: false,
                draggable: true,
                width: 'auto',
                height: 'auto',
                title: "Add New Visit"

//                    open: function () {
//                        $(this).parents(".ui-dialog:first").find(".ui-dialog-titlebar").addClass("ui-state-error");
//                    }


            });                    //.parent(".ui-dialog").wrap("<div class='theme-smoothness'></div>");

I have tried wrapping but didn’t succeed.
any idea would be appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T20:25:32+00:00Added an answer on June 5, 2026 at 8:25 pm

    have you tried using css specificity to define styles for the default jquery ui dialog styles? try defining custom styles for these classes (based on dialog dynamic class insertion):

        <div class="**ui-dialog** ui-widget ui-widget-content ui-corner-all ui-draggable ui-resizable">
       <div class="**ui-dialog-titlebar** ui-widget-header ui-corner-all ui-helper-clearfix">
          <span id="**ui-dialog-title-dialog**" class="ui-dialog-title">Dialog title</span>
          <a class="ui-dialog-titlebar-close ui-corner-all" href="#"><span class="ui-icon ui-icon-closethick">close</span></a>
       </div>
       <div style="height: 200px; min-height: 109px; width: auto;" class="**ui-dialog-content** ui-widget-content" id="dialog">
          <p>Dialog content goes here.</p>
       </div>
    </div>
    

    you can see default layout/style reference here:

    click on “theming”

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently using YUI datatable, but it is buggy: http://developer.yahoo.com/yui/datatable/ Is there another
I am using datatable on page and using binding attribute to bind it to
I have a question regarding Wicket's Datatable. I am currently using DataTable to display
i'm using a Wicket 1.4 DataTable and filter it manually like described in Apache
I am trying to merge multiple excel files using DataTable.Merge() option For Each fileName
Currently, I'm using: DataTable dt = CreateDataTableInSomeWay(); List<DataRow> list = new List<DataRow>(); foreach (DataRow
I am using a datatable and for each row I have two buttons, an
I want to remove duplicates from my DataTable so I'm using DataTable.AsEnumerable().Distinct(DataRowComparer.Default) but it
I'm storing localized strings in a single datatable using MS Sql (2008 or whatever).
What is the easiest way to alternate a row color using RichFaces dataTable component?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.