Problem with custom profile property of type system.datetime. no datepicker shown

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.
3/14/2010 6:53:07 AM
Gravatar
Total Posts 192

Problem with custom profile property of type system.datetime. no datepicker shown

hi.

when i add a custom property of type System.DateTime instead of a datepicker, a textbox and a button with "..." text is shown.

(site culture is persian)

what could be the problem??

(also the address "http://www.mojoportal.com/datepicker.aspx" from mojoportal.web.controls.jsCalendarDatePicker.cs is broken)

 

3/14/2010 11:03:36 AM
Gravatar
Total Posts 18439

Re: Problem with custom profile property of type system.datetime. no datepicker shown

Unfortunately the date picker does not support Persian Calendar and in fact the Persian Calendar is not well supported in .NET in general.

The TextBox with a ... button is the date picker, for other cultures it works and the button would display the calendar.

Best,

Joe

4/6/2010 1:59:51 PM
Gravatar
Total Posts 192

Re: Problem with custom profile property of type system.datetime. no datepicker shown

Hi again.

I developed a solution for this that works for me.

but I have doubt whether you will implement it or not.

that's because

1. I used an external persian datepicker control (which is perfect)    (comes from here: http://www.nickmehr.net/Item.aspx?ItemID=2)

2. I added a new type named System.PersianDateTime which will be used if the persian datepicker is to be shown.

the solution stores date values in gregorian in the database, and only the presentation is changed. so the profile property can be changed to System.DateTime without a problem.

 

if you want to see it, just tell me to upload the codes.

 

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