en_lang.jpg, 1 kB sk_lang.jpg, 1 kB
English Slovak

      Px Framework - ASP.NET components for rapid development of database applications


Menu:



Components of Px Framework:


PxJSDatePicker - component for the date entry, based on the JavaScript



The PxJSDatePicker component is a component of the calendar based on JavaScript. This component is used for the date selection in the folder menu, selection of current or selected date, or eventually selection of the manual date entry. The picture below displays the PxJSDatePicker component´s calendar: :

Image PxJSDatePicker component


If you want to work with the PxJSDatePicker component, you have to define it in the AddAdresar.aspx file as follows:

<Prx:PxJSDatePicker ID="edtCREATE_DATE" runat="server" AddTableRow="True"></Prx:PxJSDatePicker>

Link the PxJSDatePicker component to the PxWebQuery component in the AddAdresar.aspx.cs file as follows:

edtCREATE_DATE.PxDataSource = wquAdresar;
edtCREATE_DATE.FieldName = "CREATE_DATE";

The alignment of the component is carried once again via the AddTableRow, TableBegin and TableEnd properties. For their see their detailed description please refer to the section which deals with the PxEdit component.

If we wanted to change the date format, we can do it through property dateFormat, more examples below:

edtCREATE_DATE.DateFormat = "d.M.yyyy hh:mm:ss";

Entering of this format shall be reflected in the PxJSDatePicker component in the following way:

Image PxJSDatePicker component - format




Here is a functional example of the PxJSDatePicker component, even with source code. This functional example on this site runs on MySQL 5.0 database.

No. Example Name Source Codes SQL Script
1.10. Adresar.aspx
Adresar.aspx.cs
AddAdresar.aspx
AddAdresar.aspx.cs
SQLScript_MySQL.5.1
SQLScript_MySQL.5.0



Others articles of Px Framework:



It doesn't the intention of this part website, describe in detail the work with PxFramework components, a detailed description of the component available in manual, which can be downloaded here: Download manual of Px Framework