Our blazing fast Grid component built with pure JavaScript


Post by scebotari66 »

Hello, Team!

I have noticed that the record config works for Container (meaning it populates field values based on record), but not for Panel. Is this expected? Panel extends Container and I guess it should work the same.

Sample code:

const record = new Model({
	firstName: 'John',
	lastName: 'Smith',
});

const items = {
	firstName: {
		type: 'textfield',
		name: 'firstName',
		label: 'First Name',
	},
	lastName: {
		type: 'textfield',
		name: 'lastName',
		label: 'Last Name',
	},
};

new Panel({
	appendTo: document.body,
	record,
	items,
});

new Container({
	appendTo: document.body,
	record,
	items,
});

Post by ghulam.ghous »

Hi,

Thanks for reporting this. I have created a ticket to fix it https://github.com/bryntum/support/issues/8328. You can subscribe to keep track of updates.

Regards,
Ghous


Post Reply