persian calender in WebForm

Stimulsoft Reports.WEB discussion
Post Reply
javadzarrin
Posts: 6
Joined: Wed Feb 11, 2009 2:54 am
Location: Iran, Tehran

persian calender in WebForm

Post by javadzarrin »

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
    }
}
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

persian calender in WebForm

Post by Edward »

Hi.

Thank you for the advice, but we do not have plans to add this feature right now.

Thank you.
Post Reply