KendoUI Scheduler Event Color

601 views Asked by At

I have the following code in my resources: [] array, which sets the color of an event. In my case, the actual event tile doesnt change colors, but in the color dropdown of the event, I see the three intended options, tho they have no effect.

                {
                    field: 'color',
                    dataColorField: 'color',
                    dataValueField: 'color',
                    dataSource: [
                        { text: 'blue', color: 'blue' },
                        { text: 'red', color: 'red' },
                        { text: 'green', color: 'green' }
                    ]
                }

As you can see, there are options to change the edited tile to blue, green, or red, but none of them have any effect.

1

There are 1 answers

1
MOK On

In your dataSource field of resources "value" field is missing. So a default colour is shown . If you add the value property in dataSource of resources array you will see different resource's event in different colours.