jQuery UI Widgets Forums Scheduler Dialog Window

This topic contains 4 replies, has 3 voices, and was last updated by  mspenard 8 years, 7 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • Dialog Window #79331

    Esnaolo
    Participant

    Hello everyone,

    i have two small problems with the dialog window and I hope you can help me with them 😀

    1. Location field

    The location field in the dialog is always empty. When I create a new appointment the location is successfully stored in the database and it is also shown in the coloured overview. Only when i want to edit an appointment by clicking on it, the location field is empty.

    
                    dataFields: [
                        { name: 'id', type: 'string' },
                        { name: 'description', type: 'string' },
                        { name: 'location', type: 'string' },
                        { name: 'subject', type: 'string' },
                        { name: 'calendar', type: 'string' },
                        { name: 'start', type: 'date' },
                        { name: 'end', type: 'date' }
                    ],
    
                    appointmentDataFields:
                    {
                        from: "start",
                        to: "end",
                        id: "id",
                        description: "description",
                        location: "location",
                        subject: "subject",
                        resourceId: "calendar"
                    },
    
    			var appointment105 = {
    			id: "105", 
    			description: "Test", 
    			location: "Munich", 
    			subject: "My Subject", 
    			calendar: "User1", 
    			start: new Date(2015, 11, 16, 10,00, 0), 
    			end: new Date(2015, 11, 16, 15,30, 0) 
    			}

    2. Repeat Container
    I deactivated the repeat field in the dialog window. Generally it works fine, but when the dialog window is already open and I double-click with the mouse somewhere else in my calendar overview, the repeat field is shown again in the dialog window. How can I turn this one off?

    Thanks in advance for your help and I’m looking forward to your feedback.

    Greetings

    Marc

    Dialog Window #79332

    Peter Stoev
    Keymaster

    Hi Esnaolo,

    You can customize the Dialog window to fit to your requirements as shown in http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxscheduler/scheduler-edit-dialog.htm?arctic

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Dialog Window #79333

    Esnaolo
    Participant

    Hi Peter,

    thanks for the fast reply. I know the site you have linked to and there is the same problem:

    When you doubleclick somewhere in the calendar while the dialog window is open, the repeat field in the dialog window comes again.

    Greetings

    Marc

    Dialog Window #79337

    Peter Stoev
    Keymaster

    Hi Esnaolo,

    The sample shows how to customize the Dialog window. What is shown and what is not is part of the customization process, too. Sorry, that our built-in example does not handle all scenarios, but it is just a sample. You have to write your own code to make it to fit to your scenario.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Dialog Window #81778

    mspenard
    Participant

    Hey Esnaolo,

    I had the exact same issue with the repeat container where if a user were to first double-click in the week view (my default view), the repeat container would be hidden as I wanted because I was hiding it in editDialogueCreate:

    editDialogCreate: function (dialog, fields, editAppointment) {
        fields.repeatContainer.hide();
        // rest of my logic where I hide extra containers and customize labels
    }

    However, after showing the dialogue and clicking on the X (or Cancel) and then navigating to the daily or monthly view, I would have the Repeat container appearing in the dialogue following a double click in either of those views even if I was hiding it (and all other fields I was hiding in editDialogCreate were properly hidden). My fix, which isn’t the nicest but works for me, is to do the following:

    editDialogOpen: function (dialog, fields, editAppointment) {
        fields.repeatContainer.hide();
        // rest of my logic
    }

    Hope this helps and that it is not too late!
    Matt

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.