Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...How to style (theme) Datepicker JqueryUI control contained in a module .ascx How to style (theme) Datepicker JqueryUI control contained in a module .ascx
Previous
 
Next
New Post
10/2/2015 4:01 AM
 

Hi to all,

 

 

I have the following html setup in a .ascx of my module:

 

 

<%@ Control Language="C#" AutoEventWireup ="true" CodeBehind ="Report1.ascx.cs" Inherits="Christoc.Modules.TZTestDNNCmpModule.Report1" %>
<p>
    Origin: <input type ="text" id ="origin">
    Destination: <input type ="text" id ="destination">
    Date From: <input type ="text" id ="dateFrom">
    Date To: <input type ="text"  id ="dateTo">
    <input id ="btnGenerate" type ="button" value ="button" />
</p>

<script type="text/javascript">
    $(function() {
        $( "#dateFrom").datepicker();
        $( "#dateTo").datepicker();
    });
</script>

 

 

The above code results to the following screen in my browser:

 

 

I want to style (theme) the datepicker controls (Date From, Date To) using a JqueryUI Theme e.g."Smoothness", but I do not know how.

 

At this moment the datepicker controls pop-up like:

 

 

JqueryUI examples provide the following code as an example:

 

 

After reading this code, I tried to place the necessary tags from <head> in Page Management->More Settings->Advanced Settings->Header tags, but unfortunately I had no results.

 

If I place all the <head>  section in .ascx html code, somehow I manage to achieve the desired result, but this is not right of course. I am trying to figure out the right way to properly include the Jquery UI theme in my .ascx file and apply it to it's controls.

 

Any help appreciated, Thanks in advance.

 

 

 

 

 

 

 

 

 

 

 

 
New Post
10/2/2015 6:05 AM
 
jQuery and jQueryUI are included automatically by DNN, if requested by a module.
DNN uses wrappers for common controls, which currently are mainly Telerik controls, which are going to be replaced by jQuery Controls within the next DNN versions.

Cheers from Germany,
Sebastian Leupold (Microsoft MVP)

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
10/2/2015 7:43 AM
 

Thank you for your answer, howevere it doesn't answer my question. I am searching for the proper way to inject and apply the desired theme to my datepicker control.

 
New Post
1/19/2016 4:39 PM
 
I have the same question. I've replaced the DNNDatePicker with the jQueryUI datepicker but there's no skin applied to it. I certainly could just link to a CSS theme on a CDN but it seems there should be an official DNN solution for this.

David O'Leary
Efficion Consulting
 
New Post
1/19/2016 4:43 PM
 
Jay does a nice job of summing up the issue at the end of this thread: http://www.dnnsoftware.com/forums/thr...

David O'Leary
Efficion Consulting
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...How to style (theme) Datepicker JqueryUI control contained in a module .ascx How to style (theme) Datepicker JqueryUI control contained in a module .ascx


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.

Content Layout

Subscribe to DNN Digest

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  

What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out