Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
739
WebDateChooser calendar rendering behind other page content
posted

I have two issues trying to make this control work for me at the moment.  I am trying to let users select a date range, so I think what I want is two WebDateChoosers with the word "to" in between them.

1) When I slap two WebDateChoosers on my form and test clicking the down arrows, they aren't consistent with the z-index behavior.  One of them correctly renders the calendar picker over the next div in the page (which contains a simple text heading), but the other renders the calendar *behind* the following div.  I can't figure out why this might be happening, or which style to set to try to override the behavior. 

 2) What's the easiest way to get the two controls to render next to each other rather than one after another?  I'm going to try putting them in a table.  Actually, given the frequency of the "pick a date range" scenario, I'm thinking of writing a composite control that just contains the two date choosers.  Or is there a better way?

 Thanks!

 

John

Parents
No Data
Reply
  • 10880
    posted

    1. Your z index behavior may dependon what settings you have set on the WebDateChooser and your surrounding content.  You may have to paste your aspx markup for me to take a look at.

    2. The WebDateChooser will display as a block element.  You can use a table or simply use css so that it displays inline.

     <style type="text/css">

    .inline { display: inline; }

    </style>

    <igsch:WebDateChooser ID="WebDateChooser1" runat="server" CssClass="inline">

    </igsch:WebDateChooser>

    http://www.w3schools.com/css/pr_class_display.asp

     

     

Children