Showing posts with label scroll. Show all posts
Showing posts with label scroll. Show all posts

Saturday, March 24, 2012

Calender control positioning problem

I have got two issues with calender control

1)I have body scroll="no" and div's overflow to auto(as i have menu in top div locked and content page in other div) When i use calender control the position of popup is offset to the targetcontrolid i.e it is not docked below targetcontrol id. TargetControl is at the bottom of div so user has to scroll to reach that control. Is there any way to render the popup aligned with targetcontrol as it is done when body scroll="yes". I have also tried with body's style="overflow-y:hidden" and got same offset issue.

2) In addition to above scenario, if i have dropdownlist below target control, than calender control seems to be hidden partially. Is there any way to set z-index so that calender control will always be rendered on top of dropdownlist.

It's the divs that are controling where the calendar is position. Did you play with the absolute value? That will let you add the calendar wherever you want in the page, the only control that has problems positioning with divs is the dropdown in IE6. Do you want me to send you some div code?
sure you can send me the code...i will highly appreciate that..

Wednesday, March 21, 2012

CalendarExtender obscured by Panel control encapsulating GridView

Often, it is desirable to encase a GridView within a Panel control to delimit the grids size and provide scroll bars, thus, allowing a more WinForm like UI experience. The problem I am running into is that a CalendarExtender included therein, becomes hidden if its associated textbox is close to the lower or right boarder of the panel. One could extend the size of the Panel, but that's not a very aesthetically appropriate solution. Ideally, the z-index should be configurable for the CalendarExtender control so as to be able to force visibility under any circumstances. There are several other posts having to do with a similar problem and Dropdowns. See: http://forums.asp.net/thread/1554180.aspx for more information. Alternatively, it would be great to have the ability to set the visibility persistence so as to force the CalendarExtendar to stay visible until X'ed out. This would at least allow the user to scroll down the grid to see the rest of the Calendar. A third option might be to provide the ability to drag the Control anywhere on the page. Lastly, properties should be provided to set the Controls position relative to the Browser window itself. Ideally, all of these should be included to provide a truly robust and flexible mechanism.

I completely soooo agree with you!, Unfortunatly microsoft leaves things half undone and starts working on something else...

This...until people will ditch MICROSOFT!