Our powerful JS Calendar component


Post by codevlabs »

I am trying to toggle the resourceField multiselect value using the following code but there seems to be an issue. Kindly advise. thanks

items : 
				{
					nameField: {
						label			: '',
						required		: 'true',
						weight			:  100,
						type			: 'textareafield',
						placeholder		: 'Title',
						height			:  60
					},
					typeSelector : {	
						name 			: 'eventType',
						id				: 'eventType',			
						type  			: 'combo',
						label 			: 'Event Type',
						required		: true,
						multiSelect		: false,	
						value			: '1',
						editable    	: false,
						items         	: this.constantsService.listEventTypes,					
						weight : 110,					
						onSelect: function(_event){
							console.log(_event);							
							if (_event.record.data.value == "1" || _event.record.data.value == "2")							
								this.up().items[2].multiSelect = true;							
							else							
								this.up().items[2].multiSelect = false;							
						}
					},
					resourceField: {
						label: "Calendar",
						multiSelect: true,
						required: true
					}
Attachments
bad.png
bad.png (27.13 KiB) Viewed 180 times
good.png
good.png (25.38 KiB) Viewed 180 times

Post by tasnim »

Hi,

It looks fine here. You're styles might be missing. Please check this guide https://bryntum.com/products/calendar/docs/guide/Calendar/quick-start/angular#apply-styles

If that doesn't work, would it be possible for you to share a runnable test case with us so we can check it?


Post by codevlabs »

hi. I am currently using webpack:///node_modules/@bryntum/core-thin/core.material.css. Is this ok?


Post by Animal »

You currently have two threads on the same subject.


Post by codevlabs »

This issue is related to the toggling of multiSelect as show in the code above, while the other issue to related to crudmanager saving only one resourceId. I thought they merited a separate post.


Post by Animal »

It’s the same issue. The data storage is put into single assign mode by the load data format.


Post by codevlabs »

Noted. I will confirm also when we implement this change. Apologies for the dual post. Thanks.


Post Reply