OneClick-PopUp shows wrong Resource

Hi support,
I just noticed, that a wrong resource is shown at single click.
See here:


The edit pop-up shows the correct resource:



What did I wrong?

Regards,
Stephan

14 Replies 1 reply marked as answer

BS Balasubramanian Sattanathan Syncfusion Team August 13, 2020 02:08 PM UTC

Hi Stephen, 
 
Greetings from Syncfusion Support. 
 
We have validated your reported scenario “I just noticed, that a wrong resource is shown at single click” at our side and let you know that your shared screenshots are not viewable. So could you please share your query with proper details to serve you better? 
 
Meanwhile, we would suggest you to refer the below UG link to know more details about the Resources. 
 
 
Regards, 
Balasubramanian S 



SS Stephan Schrade August 13, 2020 10:20 PM UTC

Hi support,
many thanks for your quick answer.
The forum editor doesn't allow to add images although there is a button for that.
I could see the pictures after saving but not now any more.
So I have added the the screenshots as a zip-File

The problem is:
At single click on the event, the overview pop-up is displayed. But there the resource is "Junior-A".
And if I click on the pencil or make a double-click on the event, the edit popup is displayed. And here I can see the correct resource which is "U23".

I don't want to use the group view of the schedule, so the group property is not set.

My settings are:

var calendarData = new ej.data.DataManager({
url: 'calendar/getcalendardata',
crudUrl: 'calendar/updatecalendardata',
adaptor: new ej.data.UrlAdaptor
});

var resourceData = new ej.data.DataManager({
url: 'calendar/getcalendarresource',
adaptor: new ej.data.UrlAdaptor
});

var csrfQuery = new ej.data.Query().addParams("<?= Yii::$app->request->csrfParam; ?>", "<?= Yii::$app->request->csrfToken; ?>");

var scheduleObj = new ej.schedule.Schedule({
width: '100%',
height: '700px',
rowAutoHeight: true,
allowDragAndDrop: false,
firstDayOfWeek: 1,
timezone: 'Europe/Berlin',
views: [{option: 'Month', interval: 6}],
selectedDate: new Date(2020, 0, 1),
resources: [{
field: 'resourceid', title: 'Resource',
name: 'Persongroups', allowMultiple: true,
dataSource: resourceData,
query: csrfQuery,
textField: 'Caption', idField: 'Id', colorField: 'Color'
}],
eventSettings: {
dataSource: calendarData,
query: csrfQuery,
template: '#apptemplate'
}
});
scheduleObj.appendTo('#Schedule');

The responses from the backend are:

Resources
[{
    "Id": "3",
    "Caption": "Junior-A",
    "Color": "#FF0000"
}, {
    "Id": "2",
    "Caption": "Junior-B",
    "Color": "#00FF00"
}, {
    "Id": "1",
    "Caption": "Junior-C",
    "Color": "#0000FF"
}, {
    "Id": "5",
    "Caption": "Trainer",
    "Color": ""
}, {
    "Id": "4",
    "Caption": "U23",
    "Color": "#444444"
}]


Data
[{
    "Id": "1",
    "Subject": "Test2",
    "Location": "Berlin",
    "StartTime": "2019-12-28 00:00:00",
    "EndTime": "2020-01-04 00:00:00",
    "IsAllDay": "0",
    "resourceid": [4]
}, {
    "Id": "2",
    "Subject": "Test2",
    "Location": "",
    "StartTime": "2020-01-07 23:00:00",
    "EndTime": "2020-01-08 23:00:00",
    "IsAllDay": "1"
}, {
    "Id": "3",
    "Subject": "Test3",
    "Location": "Esslingen am Neckar",
    "StartTime": "2020-01-08 00:00:00",
    "EndTime": "2020-01-09 00:00:00",
    "IsAllDay": "0"
}, {
    "Id": "5",
    "Subject": "Test5",
    "Location": "",
    "StartTime": "2020-01-20 00:00:00",
    "EndTime": "2020-01-23 00:00:00",
    "IsAllDay": "1"
}]

Regards,
Stephan

Attachment: Archiv_ddf0c7d1.zip


BS Balasubramanian Sattanathan Syncfusion Team August 14, 2020 10:46 AM UTC

Hi Stephan Schrade, 

Thanks for the update. 

We have validated your reported problem “OneClick-PopUp shows wrong Resource” and checked at our side by preparing a sample based on your scenario by using the below highlighted code snippet. Since the popup showing the corresponding resource name in it. So we would suggest you to refer the below sample to know more details. 

Code snippet: 
var dataManger = new ej.data.DataManager({ 
  url: 'http://localhost:54738/Home/LoadData', 
  crudUrl: 'http://localhost:54738/Home/UpdateData', 
  crossDomain: true, 
  adaptor: new ej.data.UrlAdaptor() 
}); 
var dataQuery = new ej.data.Query().from("Events").addParams('addData', 'Welcome') 
var scheduleObj = new ej.schedule.Schedule({ 
  width: '100%', 
  height: '650px', 
  selectedDate: new Date(2017, 5, 7), 
  rowAutoHeight: true, 
  allowDragAndDrop: false, 
  firstDayOfWeek: 1, 
  timezone: 'Europe/Berlin', 
  views: [{ option: 'Month', interval: 6 }], 
  group: { 
    resources: ['Owners'] 
  }, 
  resources: [{ 
    field: 'GroupID', title: 'Owner', 
    name: 'Owners', allowMultiple: true, 
    dataSource: [ 
      { OwnerText: 'Nancy', Id: 1, OwnerColor: '#ffaa00' }, 
      { OwnerText: 'Steven', Id: 2, OwnerColor: '#f8a398' }, 
      { OwnerText: 'Michael', Id: 3, OwnerColor: '#7499e1' } 
    ], 
    textField: 'OwnerText', idField: 'Id', colorField: 'OwnerColor' 
  }], 
  eventSettings: { dataSource: dataManger, query: dataQuery } 
}); 
scheduleObj.appendTo('#Schedule'); 

Screenshot: 
 
 
 
 
 

Kindly refer to the above links and let us know the below details if you still face the problem at your side. 
  • Replicate your problem in the above shared sample or
  • Share a sample illustrating the problem which would help us to proceed further.

Regards, 
Balasubramanian S 


Marked as answer

SS Stephan Schrade August 14, 2020 02:39 PM UTC

Hi support,
many thanks for your example.
But this only works, if there is a group setting.
But I don't want to use the group setting, because then I have a split view with as many schedules as there are resources.
It looks like multiple resources only work, if there is a group setting.
Is this correct?

Regards,
Stephan


BS Balasubramanian Sattanathan Syncfusion Team August 17, 2020 10:40 AM UTC

Hi Stephan Schrade, 

We have modified the sample without a group setting. Since the quick popup opening with the corresponding resource detail only. For your reference, we have shared a sample below. And we let you know that, if we add group settings, the Scheduler will display like multiple resources. 

Here is a video of the sample that works as expected. 

Without group settings: 
 

With group settings: 
 


Kindly refer to the above solution and let us know if you need further assistance. 

Regards, 
Balasubramanian S 



SS Stephan Schrade August 17, 2020 12:00 PM UTC

Hi support,
many thanks for your effort.

The problem is, that if an event is attached to more than one resource it does not show all the resources. Instead it shows a wrong one.
Please see the attached video.
The first event has two corresponding resources and the quick popup is wrong, the other ones have only one and the quick popup is ok.

Regards,
Stephan



Attachment: schedulemultipleresources.mov_741eff70.zip


BS Balasubramanian Sattanathan Syncfusion Team August 18, 2020 04:55 PM UTC

Hi Stephan Schrade, 

Thanks for the update. 

We have validated your reported problem “The problem is, that if an event is attached to more than one resource it does not show all the resources. Instead it shows a wrong one.” at our side. We let you know that we could replicate the reported problem at our side and will update the further details on August 19, 2020. We would appreciate your valuable patience. 

Regards, 
Balasubramanian S


BS Balasubramanian Sattanathan Syncfusion Team August 19, 2020 04:34 PM UTC

Hi Stephan Schrade, 

Thanks for your valuable patience. 

We can reproduce the problem “The problem is, that if an event is attached to more than one resource it does not show all the resources. Instead it shows a wrong one.” at our side. So we logged the below defect report. The fix for this defect will be included in our weekly patch release which is expected to roll out on the August 25, 2020. We will update the details on August 26, 2020. We would appreciate your valuable patience. You can track the status through the below feedback link 

 
Regards, 
Balasubramanian S


SS Stephan Schrade August 26, 2020 08:38 PM UTC

Hi support,
I just checked the newest release 18.2.55 and I think the fix isn't included in this release.
When will the fix be integrated?

Regards,
Stephan


VM Vengatesh Maniraj Syncfusion Team August 27, 2020 03:18 PM UTC

Hi Stephan, 

Sorry for the inconvenience.  

The fix for this issue is rescheduled to our upcoming patch release which is scheduled on September 01, 2020. We will ensure the fix and update the further details on September 02, 2020. We appreciate your valuable patience until then. 

Regards, 
Vengatesh  



SS Stephan Schrade September 2, 2020 08:37 AM UTC

Hi support,
unfortunately there is still no fix of this problem, even with the 18.2.56 patch release :-(
And also no fix of
https://www.syncfusion.com/feedback/17172/ics-import-not-works-with-german-umlaut
described here
https://www.syncfusion.com/forums/157022/import-ics-with-german-umlaut

Regards,
Stephan


VM Vengatesh Maniraj Syncfusion Team September 3, 2020 12:06 PM UTC

Hi Stephen,  

We deeply regret the inconvenience.  

The fix for both issues is again rescheduled to our next patch release which is scheduled on September 09, 2020. Currently, we are working on those issues with high priority and we will provide the solution in our next release without delay. We appreciate your valuable patience until then. 

Regards, 
Vengatesh  



SS Stephan Schrade September 14, 2020 11:49 AM UTC

Hi support,
as I see in the changelog the issues seemed to be resolved.
But I can't use them because this patch release does not show up at
https://crg.syncfusion.com
Can you please update this?

Regards,
Stephan


BS Balasubramanian Sattanathan Syncfusion Team September 15, 2020 01:11 PM UTC

Hi Stephan, 

Thanks for the reply. 

We have validated your query “I can't use them because this patch release does not show up” at our side and let you know that we will refresh the Custom Resource Generator at our side on our next patch release which is expected to roll out on September 29, 2020. Meantime, we suggest you to use our CDN link to include the fix. 


Kindly try the above CDN in your project and let us know if you need further assistance. 

Regards, 
Balasubramanian S

Loader.
Up arrow icon