RowFormatting can't work in Fluent theme

4 posts, 1 answers
  1. Kun
    Kun avatar
    44 posts
    Member since:
    Aug 2018

    Posted 19 Dec 2018 Link to this post

    Hello,

    I use rowformatting to change row forecolor in my radgridview. But when I use Fluent theme, the row forecolor changing in rowformatting doesn't work any more.

    But it works in some other themes like windows7, windows8, VS2012,Office2007, Desert, Aqua, etc. I've tried change fore color in cellformatting by using Fluent theme, it works. 

    Why in Fluent theme, forecolor cannot be changed in rowformatting ?

    Thank you

     

     

  2. Dimitar
    Admin
    Dimitar avatar
    2907 posts

    Posted 20 Dec 2018 Link to this post

    Hi Kun,

    By default, if a particular style is not explicitly set it inherits the value of its parent. This is valid for all elements used in our framework. In this case, the ForeColor of the cell is explicitly set in theme and this is why it is not inheriting the row ForeColor. This depends on the specific theme styles, in this case, the Fluent theme changes the ForeColor of the selected cells and if you are using a single cell selection mode the cells ForeColor is different in one cell only and cannot be iherited from the row.

    I hope this will be useful. Let me know if you have additional questions.

    Regards,
    Dimitar
    Progress Telerik
    Get quickly onboard and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  3. Kun
    Kun avatar
    44 posts
    Member since:
    Aug 2018

    Posted 20 Dec 2018 in reply to Dimitar Link to this post

    Hello Dimitar,

    Thank you for your answer.

    I use FullRowSelect as SelectionMode of Mastertemplate. But the row forecolor is still override by theme.

    Could you tell me which property that I can change for foreColor of the selected cells in the theme style builder ?

    I don't need the specific forecolor of selected cells. So I would like to delete this particular setting in the fluent theme by creating my own theme.

    Best regards,

     

  4. Answer
    Dimitar
    Admin
    Dimitar avatar
    2907 posts

    Posted 20 Dec 2018 Link to this post

    Hello Kun,

    This can be done by removing the ForeColor setting for all grid cell elements and all states. The attached image shows which setting you need to uncheck.

    Should you have any other questions do not hesitate to ask.

    Regards,
    Dimitar
    Progress Telerik
    Get quickly onboard and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top