DatePickerControl Questions

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
12/9/2008 1:06:16 PM
Gravatar
Total Posts 5

DatePickerControl Questions

I am attempting to use the DatePickerControl with the default provider in a custom feature module user control. 

aspx markup excerpt:

<div class="settingrow qtext">
<mp:SiteLabel ID="lblDueDate" runat="server" ForControl="dpDueDate" ConfigKey="RfqFormDueDateLabel"
ResourceFile="Rfq_GlobalResources" CssClass="settinglabel"></mp:SiteLabel>
<br />
<mp:DatePickerControl ID="dpDueDate" Required="True" runat="server"
columns="15" MaxLength="10" />
</div>

code-behind excerpt in PopulateLabels()

this.dpDueDate.ShowTime = false;

I have some questions regarding its use:

(1) As mentioned in the developer documentation for the control, I have set Required="True" in the markup, but the RequiredFieldValidator is not being generated. So then I tried to add my own RequiredFieldValidator to the DatePickerControl, but when I do, there are javascript errors in attempting to select a date when the calendar is visible.  The date picker is part of a ValidationGroup (there are multiple on the user control) and I would like to specify the validation group.  In looking at the control source code, I don't see the Required property.  Is there are way to specify a date value is required?

(2) Separate from the required validation, the user control that the date picker is part of is a bit lengthy.  The actual DatePickerControl appears below the fold so the user has to scroll down to see it which means the top 1/3 of the form is off the screen.  When the user clicks the button to display the calendar, it appears well above the DatePickerControl, off the screen.  The user then has to scroll up to the top part of the page to see the calendar.  Is there a setting to anchor the calendar div to the location of the DatePickerControl?

Thanks,

Jim

12/10/2008 5:19:22 AM
Gravatar
Total Posts 18439

Re: DatePickerControl Questions

Hi Jim,

I looked around briefly and haven't found any places where I'm using the IsRequired property on the DatePickerControl, so I'm not confident it works.

I know in the Blog/EditPost.aspx page I'm using a separate required field validator for the begin date and it works there.

Not sure about the issue you're seeing with presentation of the control. Are you testing/debugging it from within the mojoportal web project?

columns and maxlength are not valid properties, I would remove that.

Hope it helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.