How to extend DatePicker in mojojoPortal?

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.
8/14/2011 12:42:13 AM
Gravatar
Total Posts 92
Нет, я не изменил. До старости глубокой...

How to extend DatePicker in mojojoPortal?

Dears,

First of all suppose one of you want to select this date of birthday "25/5/1978" from the current mojo calendar and you will understand me, unless i could not find how to do it easy here!

I see you implemented provider collection, manager and tow types of DatePickers, but non of them have the features ChangeMonth="true"

ChangeYear="true"

YrasRange="c-10:+0"

and I think this must be easy to implement, but i lost orientations,

seems we have here jQuery needed files, and I could call it from test page  using the simple JS, on Input control.

Such easy and beautiful here http://jqueryui.com/demos/datepicker/#dropdown-month-year

 

Any advice how to implement this feature?

8/14/2011 3:05:18 AM
Gravatar
Total Posts 92
Нет, я не изменил. До старости глубокой...

Re: How to extend DatePicker in mojojoPortal?

I just implemented the next tow features in mojoPortal DatePicker and working perfect, should I upload the changes here, you may apply them, I made minor changes, mainly they where existing but remarked?

8/14/2011 3:53:48 AM
Gravatar
Total Posts 92
Нет, я не изменил. До старости глубокой...

Re: How to extend DatePicker in mojojoPortal?

Ok friends,

I have now two beautifull DatePickers in mojoPortal, with all these features with the existing resources and script in mojo "no new files".

The controls looks like this:

<mp:DatePickerControl ID="DatePickerControlID" ChangeMonth="true" ChangeYear="true" YearRange="c-30:c+5"   ShowTime="false" runat="server"  />
   
 
    <portal:jDatePicker  ID="jDatePickerID" ChangeMonth="true" ChangeYear="true" YearRange="c-30:c+5"  ShowTime="false" runat="server"  ></portal:jDatePicker>

 

They work perfect , no errors, the test page will be after one hour at http://www.aljidara.net/test1.aspx

The sources i changed as follow:

Project: mojoPortal.Web.Controls:

Folder: Root
1.1. jsCalendarDatePicker.cs

Folder: DatePicker

1. jsCalendarDatePickerAdapter.cs
2. IDatePicker.cs
3. DatePickerControl.cs

Project: mojoPortal.Web
Folder:  Controls/jQuery

1. jDatePickerAdapter.cs
2. jDatePicker.cs

All my changes are with comment:

"// *** added by ghalib ghniem Aug-14-2011 ChangeMonth: bool ,ChangeYear: bool"

You can download the sources from http://www.itinfoplus.com/Data/Sites/1/userfiles/mojoCalendarUpdates.rar
This file will be until Joe apply these changes, otherwise they will still there.

Best u

 

8/15/2011 7:05:02 AM
Gravatar
Total Posts 18439

Re: How to extend DatePicker in mojojoPortal?

Hi Ghalib,

I integrated your changes yesterday. Note that I named the properties ShowMonthList, ShowYearList, YearRange on the controls as these names are more obvious what they do, of course internal to the jquery datepicker I used the names expected in the javascript.

Best,

Joe

8/16/2011 2:29:40 AM
Gravatar
Total Posts 92
Нет, я не изменил. До старости глубокой...

Re: How to extend DatePicker in mojojoPortal?

Thank you,

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