Custom cell background

6 posts, 0 answers
  1. vnd
    vnd avatar
    11 posts
    Member since:
    Aug 2007

    Posted 24 Jun 2010 Link to this post

    I need to paint the grid cell with custom brush, depending on value of the cell. Is it possible with RadGridView ?
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 24 Jun 2010 Link to this post

    Hello,

     Please check this demo for more info.

    Best wishes,
    Vlad
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. Sven J
    Sven J avatar
    26 posts
    Member since:
    Nov 2009

    Posted 24 Jul 2012 Link to this post

    Hi,

    is it possible to make the tracking (mouse hover) & selection bar appear infront of the cell background when implementing a CellStyleSelector? When implementing a RowStyleSelector the background of the row is behind the tracking/selection bar.  

    Thanks
    Sven
  5. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 25 Jul 2012 Link to this post

    Hi Sven,

     

    You should set the SelectionUnit property of RadGridView to Cell to achieve your goal. 


    Greetings,
    Vanya Pavlova
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  6. Sven J
    Sven J avatar
    26 posts
    Member since:
    Nov 2009

    Posted 26 Jul 2012 Link to this post

    Hi,

    thank you for your response. I'd like to stay with SelectionUnit as Row because in my case the user has to select a row not a cell. So UI should do, too. Any other suggestions?

    Thank you in advance
    Sven
  7. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 26 Jul 2012 Link to this post

    Hello Sven,

     

    Another possibility is to predefine the template of GridViewRow and position the Border elements which is responsible for MouseOver/Selection effects on the Top of the DataCellsPresenter (element responsible for displaying GridViewCells). These elements use colors with no Transparency - so if you want to apply some cell style and maintain these Borders on the top of the cell's Background you should use colors, which allow transparency. Otherwise the content of the cells will be lost. 
    I have prepared small sample demo which illustrates how this can be achieved.  



    Regards,
    Vanya Pavlova
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top
DevCraft banner