Grid View Theme with Alternate Hot Tracking row when selected

4 posts, 1 answers
  1. Ben
    Ben avatar
    11 posts
    Member since:
    Dec 2015

    Posted 28 Apr Link to this post

    Hi,

    My issue is as follows. I have created a custom theme and applied it to my application. The grid has alternating rows colors (white and gray), a selected row color of light green and a hot tracking color of medium green. Everything works correctly except this one case. When a row is selected and is colored light green, if you move the mouse over that row, the hot tracking color changes from medium green to gray.

    It almost looks like there is an alternate hot tracking color. I checked the theme and there are four colors I can set for hot tracking and I set them all to the same medium green to check if that was the issue. It is not. It is also not just showing the regular row color since it is gray for the white rows also.

    I have attached two images that show the issue.

    Any help with this would be awesome.

    Thanks

    Ben

  2. Answer
    Dimitar
    Admin
    Dimitar avatar
    1404 posts

    Posted 29 Apr Link to this post

    Hello Ben,

    Thank you for writing.

    Without taking a look at the custom theme I cannot say why you are not getting the expected results. I want to recommend you to examine one of the default themes and see how the styles are set there. The attached image shows where you need to compare the row states. The following article shows how you can extract the predefined themes:  Loading Predefined Themes.

    I hope this will be useful. 

    Regards,
    Dimitar
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Ben
    Ben avatar
    11 posts
    Member since:
    Dec 2015

    Posted 02 May in reply to Dimitar Link to this post

    I got to the bottom of the issue.
    In Visual Style Builder you not only have to select the repository item for each state buy also have to select or unselect the DRAW FILL state for each item state. For example, the Row.isSelected.isCurrent.HotTracking state had my HoverFill selected from the repository correctly, but the DrawFill property was set to False so it was showing the BackGround Color for that state which was gray, instead of the repository fill color.
    I have only been using the VSB tool for about a month. It is VERY deep in what you can do, which is both awesome and frustrating.
    Thank you for your help on this!

    Ben
  5. Dimitar
    Admin
    Dimitar avatar
    1404 posts

    Posted 03 May Link to this post

    Hello Ben,

    I think once you get used to the tool you will be easily able to achieve what you want. The themes are big and complex and it is always a good idea to see how the predefined ones are built. Nevertheless, I am glad that you have found a solution for your case. Do not hesitate to contact us if you have other questions.
     
    Regards,
    Dimitar
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top