Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

  • Isomorphic
    replied
    Running your exact code, we're not seeing this problem. Maybe you are exiting the DateChooser by hitting cancel or hitting the close button? This is expected to discard changes.

    Leave a comment:


  • billw
    replied
    Here is the code. During initialization, I place a new Date() into the control (form.getItem('startTime').setValue(new Date()). The change handler ONLY fires when I change the calendar fields. Changing the time values never fires the change handler, and when the submit button is clicked, the time stays the same as when initially populated.


    Code:
        var form = isc.DynamicForm.create({
            autoDraw: false,
            width: 400,
            height: "100%",
            title: "Start Time",
            showTitle: true,
            autoFocus: true,
            numCols: 4,
            padding: 10,
            titleOrientation: "top",
            fields: [
                {
                    name: "program",
                    title: "Program",
                    colSpan: 2,
                    prompt: "Select Program",
                    type: "select",
                    valueMap: ['program1', 'program2']
                },
                {
                    name: "startTime",
                    title: "Start Time",
                    type: "datetime",
                    showPickerTimeItem: true,
                    use24HourTime: false,
                    useTextField: true,
                    colSpan: 2,
                    change: function (form, item, value, oldValue) {
                        alert(value);
                    }
                },
                {
                    type: "rowSpacer",
                    height: 5
                },
                {
                    name: "submitButton",
                    title: "Send",
                    type: "button",
                    align: "center",
                    colSpan: 1,
                    width: 140,
                    click: function () {
                        var d = form.getItem('startTime').getValue();
                        alert(d);
                    }
                }
            ]
        });
    Last edited by billw; 9 May 2013, 07:20.

    Leave a comment:


  • Isomorphic
    replied
    Please show test code

    Leave a comment:


  • billw
    started a topic DateTimeItem

    DateTimeItem

    I am using the very latest development (5/9) version of SmartClient 9 beta, and checking out the DateTimeItem for the Date picker control. Seems that changing the date actually changes the item value, but changing the time values does nothing. Is this control not finished yet?

    Thanks
Working...
X