Coloring one row

Discuss issues related to v3.x
Post Reply
User avatar
hostelsystem
Posts: 13
Joined: Tue Jun 16, 2015 7:53 am

Coloring one row

Post by hostelsystem » Tue Jun 16, 2015 3:47 pm

Can you tell me how to color one row in the grid: http://screencast.com/t/DIXoc3MJ5Ja

User avatar
Terence
Core Developer
Core Developer
Posts: 1523
Joined: Tue Apr 01, 2014 2:23 pm

Re: Coloring one row

Post by Terence » Tue Jun 16, 2015 6:16 pm

You could use resourceZones to color up a part (or whole) row of a resource. You have then to specify start- and end dates.

Please take a look at: http://www.bryntum.com/docs/scheduling/ ... ourceZones

You can assign a eventStore to the resourceZone property and add records to it. The event model has a cls property with which you can color up the row.

User avatar
Nicolas
Posts: 2
Joined: Thu Oct 25, 2012 10:23 am

Re: Coloring one row

Post by Nicolas » Fri Apr 28, 2017 11:48 am

Hello,

Using zone to style one row looks a bit like an heavy work around, especially when you already use zones for something else.

Isn't there any way to put some 'Cls' property on the resource and apply it on the DOM like it's the case for Events ?

I'm trying to dig into the code to find where I could plug some code to append a record's 'Cls' property into the row"s DOM.

Any hint is welcome :-)

User avatar
Terence
Core Developer
Core Developer
Posts: 1523
Joined: Tue Apr 01, 2014 2:23 pm

Re: Coloring one row

Post by Terence » Fri Apr 28, 2017 11:57 am


User avatar
Nicolas
Posts: 2
Joined: Thu Oct 25, 2012 10:23 am

Re: Coloring one row

Post by Nicolas » Fri Apr 28, 2017 1:47 pm

Perfect !

Many thanks

Post Reply