We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Editor windows does not popup when double click

Hello,

I am using Syncfusion JS2 with community license, trying to develop a scheduling application in a Asp.net mvc project. I implemented initialization code and get scheduler view successfully. But when i double click on the view, editor window is not shown. (With one click, info popup is shown.) 

Also i could not add any appointment with code. Below is imports and functional codes.There is no exception, no javascript error, but event is not beeing added to schedule control.

Could you help?

Regards
         

//Page scripts
        var data = [{
            Id: 1,
            Subject: 'Paris',
            StartTime: new Date(2019, 8, 2, 10, 0),
            EndTime: new Date(2019, 8, 2, 12, 30),
        }];

        var scheduleObj = new ej.schedule.Schedule({
            height: '550px',
            selectedDate: new Date(2019, 8, 2),
            views: ['Day', 'Week', 'TimelineWeek', 'Month', 'Agenda'],
            eventSettings: {
                dataSource: data
            }
        });
        scheduleObj.appendTo('#scheduler');


        let Data = [{
            Id: 3,
            Subject: 'Conference',
            StartTime: new Date(2019, 8, 3, 9, 0),
            EndTime: new Date(2019, 8, 3, 10, 0),
            IsAllDay: false
        },{
            Id: 4,
            Subject: 'Meeting',
            StartTime: new Date(2019, 8, 3, 10, 0),
            EndTime: new Date(2019, 8, 3, 11, 30),
            IsAllDay: false
        }];

        scheduleObj.addEvent(Data);

6 Replies

AP Arun Palaniyandi Syncfusion Team August 6, 2019 04:48 AM UTC

Hi Tezcan , 
 
Greetings from Syncfusion support. 
 
Based on your shared codes, we have tried to replicate this issue, but we were unable to replicate from our side. The Editor windows pops up correctly when double click the cell.  
 
We have also prepared a sample below for your convenience. 
 
To investigate your issue further please share us the below details. 
 
  • Open your console window and check for any console errors when you doubleclick on the cell and share the issue screenshot, if any?
  • Please share us your exact EJ2 version details?
  • If possible, please use our sample to reproducible your issue and get back to us to validate this in our side?
 
Please get back to us with the above asked details. 
 
Thanks,  
Arun P. 
 



TC Tezcan Cirakoglu August 19, 2019 06:36 AM UTC

Hi, 

I just figured out the reason of this issue. Please chek the code below. When i add "fields" setting to eventSettings property, this error occures. If i comment those lines as seen below, everything works fine. 

    var scheduleObj = new ej.schedule.Schedule({
        height: '550px',
        selectedDate: new Date(2019, 8, 2),
        views: ['Day', 'Week', 'TimelineWeek', 'Month', 'Agenda'],
        eventSettings: {
            dataSource: data,
            //fields: {
            //    id: 'Id',
            //    subject: { name: 'Konu', title: 'Toplantı Adi' },
            //    location: { name: 'Yer', title: 'Yer'},
            //    description: { name: 'Aciklama', title: 'Toplantinin Konusu' },
            //    startTime: { name: 'Baslangic', title: 'Baslangic Zamani' },
            //    endTime: { name: 'Bitis', title: 'Bitis Zamani'  }
            //}
        }
    }); 


TC Tezcan Cirakoglu August 19, 2019 06:38 AM UTC

just another thing, below code works fine. I removed "name" property from field settings:.. 

            fields: {
                id: 'Id',
                subject: { title: 'Toplantı Adi' },
                location: { title: 'Yer'},
                description: { title: 'Toplantinin Konusu' },
                startTime: { title: 'Baslangic Zamani' },
                endTime: { title: 'Bitis Zamani'  }
            }


KK Karthigeyan Krishnamurthi Syncfusion Team August 20, 2019 09:05 AM UTC

Hi Tezcan, 

Thanks for your update. 

We suspect that field mapping is not proper in your sample which could be the cause. We have prepared the below sample with your code example, kindly try the sample and if the issue persists, try to reproduce the error in a sample and revert else share your runnable sample (if possible) to serve you better. 

 
Regards, 
Karthi 



TC Tezcan Cirakoglu August 23, 2019 10:35 AM UTC

Correct! Field mappings were wrong, after correctiong values, it worked like a charm. Thanks a lot


KK Karthigeyan Krishnamurthi Syncfusion Team August 26, 2019 03:11 AM UTC

Most welcome 😊 


Loader.
Live Chat Icon For mobile
Up arrow icon