You need to sign in to do that
Don't have an account?

Date Picker in Popup Issue
Hi,
I have a date input field in a popup window. Issue that i am facing is the date picker is not inligned with the text field. Could any one please address this issue
Thanks and Regards,
Neha
Hi,
Is the date picker is out side the pop up window or is just not aligned with the text box.
Do you have applied an type of css on the pop up page. If yes try adjusting the css.
Apex Code:-
Visualforce Page Code:-
This is the code for popup. The Problem that i am facing is if i have more rows in popup window then the datepicker openup below the popup and not with the date input field. The datepicker position is fixed on page and not on popup. So facing this issue
Have tried setting z-index property as well but didnt worked out. Any suggestions on this are welcomed
Ok,
if the given code is of POP up window that try removing ..
.showme
{
position:absolute;
"ABSOLUTE" and use relative.. it might be that "ABSOLUTE" is not allowing the datepicker any sapce so it have to move to the bottom. Some thing like this might be the cause....
If i give as 'relative' It opens the popup below the pageblock . I want it to open at a fixed position beside the pageblock.
Ok,
but just for checking reason... try relative and see did date picker came where you want or not.
Yes daetpicker is coming corrctly below the date input field if i give as relative. but i want the popup to be at a constant place
Ok,
now try putting "height" and "width" value where you want your pop up screen using ---"realtive" and percentage values for width and height this way pop up will always be at a particular position no matter the screen.
Still didntt worked :(
Tried using
It is still not opening aligned to the text box. Also tried position:absolute and relative as well. Nothing has achieved my requirement. If any one could please suggest some workaround for this it would be great.
by using position:fixed its aligned to inputfield.but popup window overlap the datepicker.so datepicker is not displayed clearly.Any idea how to focus that datepicker?
Yes, that worked perfect for me.
Thanks
.datePicker{
}
Cheers.
Add the following code:
.datePicker{
position: fixed;
z-index:10001;
width: 420px;
height:auto;}
no need for using styleclass=datePicker as datePicker is by default the styleclass for the date field and its done