» Forums
» The DHTML Calendar
» General discussion
» calender problem : hiding dropdown listbox
calender problem : hiding dropdown listbox
2007/08/06 15:59
Viewed 3078 times
Replies: 2/2

Hi

I am using dynarch calender control ( DHTML calender control version 0.9.5). It is really fantastic and easy.
But i am facing a major problem due to this calender.

When i open this calender, and move it across the page area by dragging with mouse, all the listboxes
(ASP.NET combo box and list box) in the page get disappeared when this calender is dragged over them.

I checked the same for other server sided controls (ASP.NET controls) like checkboxes, option buttons ,text
boxes, but these controls seem to be proper. They remain visible .Only problem is with Drop down list box and normal list box.

I tried to check this in js code, there are two listboxes hidden in method . I tried with them also but it is
not working at all.

Is this cause due to heavy server sided controls overlapping with calender?

Is any calender property/ code has to be changed for keeping controls visible?

I will be thankful if I get solution for this problem as its too urgent.

Thank you ,
Sarang

Re: calender problem : hiding dropdown listbox
2007/08/08 18:31
Viewed 3959 times
Replies: 0/0

hi sarang,

im currently working adding a dropdown in the calendar.So when i was hacking the code (calendar.js) what i found at the end of the page was that there is some code that will hide the visibility of an applet, iframe and select. I donno what the code excatly does... but if u just remove the 'select'
from the array var tags = new Array("applet", "iframe", "select");

and look whether u r problem wiil be solved.

Cheers,
harysh
harysh99@indiatimes.com

last
Re: calender problem : hiding dropdown listbox
2008/05/06 17:53
Viewed 1529 times
Replies: 0/0

Hi Sarang,

I was experiencing the same problem as well. The problem is that the default visibility for each element hidden by the calendar is updated to that element's current visibility whenever the calendar is dragged. This makes the stored default to be 'hidden' for all elements already hidden by the calendar. I'm not sure if this has been included in an updated release yet or not, but it looks to be a bug.

Problem code (Calendar.prototype.hideShowCovered funcion in Calendar.js):
cc.__msh_save_visibility = cc.style.visibility;

My fix:
if (typeof(cc.__msh_save_visibility) == 'undefined')
{
cc.__msh_save_visibility = cc.style.visibility;
}

After this fix, everything seemed to work smoothly when dragging the calendar (IE6).

Hope this helps,
Brian

last
Google