Showing posts with label datepicker. Show all posts
Showing posts with label datepicker. Show all posts

Friday, July 29, 2011

Using DatePicker in .Net

To use datepicker in .net page
1. Attach the following links and scripts to your page:


2. Add The following code into script tags.


3. Add the following code into your form:


4. modify the CSS File of the JQuery UI

The result is:

Resize JQuery UI DatePicker

Hello Programmers,
sometimes its useful to use on the shelf components in your code, but the challenge rises when you want to customize your used objects.
One of the reused components is the JQuery UI datepicker, which you can view its documentation on datepicker by JQuery UI.
The link provides you with alot of options and choises to be customized. But what about resizing datepicker???

well, i have tried alot of things to resize datepicker. and finally came with this solution that i wanna share with you:
one of the files you must use is the: jquery-ui-1.8.14.custom.css, where all themes and styles goes on, at the end of the file simply add the following lines of code:

@import "ui.base.css";

@import "ui.theme.css";
div.ui-datepicker { font-size: 62.5%; }
 
save the file and see you resized datepicker on the web.
Some people said that you can add a style to your page and add the style:
div.ui.datepicker
{
    font-size:10px;
}
but it didnt work for me.
 
hope this was useful for you
 
 
enjoy.
Jalal Hijazi