Declined
Last Updated: 24 May 2022 18:50 by ADMIN
Smiljan
Created on: 24 May 2022 08:59
Category: Grid
Type: Feature Request
1
Alternating row disable attribute (or fix alt coloring)

Hi,

is it possible to implement grid attribute that would disable alternating row coloring altogether?
It would leave onHover settings as is.

It's causing us problems when we color rows using onRowRender to custom color a row based on some value in the record, but alternating css "jumps in" and overrides onRowRender.

See attached screenshot (all rows should be green), but alt are still dark-grey )instead of green.

This should me marked as feature or bug.

BR, Smiljan

Attached Files:
1 comment
ADMIN
Marin Bratanov
Posted on: 24 May 2022 18:50

Hi Smiljan,

I can suggest two options:

  • build an entire custom theme that matches the overall colors you want to have
  • add the appropriate CSS rules to also cater for hover and selection states, you can see a basic example here

A simple plain parameter would not suffice for such a thing, because things quickly snowball - what if someone wants to change only the hover or only the selection, or only the main and selection but not the hover color? The combinations are simply too many for declarative control, and this is why styling should be done with appropriate CSS rules - this is the general way this is to be done in a web application. Thus, I am going to have to mark this as "declined".

Regards,
Marin Bratanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.