I found some solutions to put Persian calendar in StiReport auto generated web form. StiReport engine creates tow HTML input tag of types text and button for each DateTimePicker. The Id of button is equal to id of text box following "_Button". Also StiReport engine creates javascript function with name StiDatePickerShow(obj, format) so that obj is button and format is the format of DateTime. You can create a function with the same name and signature and handle DateTimePicker:
Code: Select all
function StiDatePickerShow(obj, format) {
if (obj != null) {
var textID= obj.id.split('_Button'); // get id of textbox
var txt = document.getElementById(textID[0])
if (txt != null)
txt.value = '1387/11/01'; // open your own dialog to select Persian date
}
}