Results 1 to 10 of 10

Thread: Canvas/Grid - selected row highlight color

  1. #1

    Canvas/Grid - selected row highlight color

    On a canvas grid, the selected row has a dotted outline. Is it possible to highlight the selected row with a color?

    Thanks,
    Scott

  2. #2
    Lianja Team yvonne.milne's Avatar
    Join Date
    Feb 2012
    Location
    Berkshire, UK
    Posts
    1,840
    Hi Scott,

    You can do it through CSS, e.g.

    Name:  canvasGridCSS.jpg
Views: 1047
Size:  91.0 KB

    Regards,

    Yvonne

  3. #3
    Senior Member
    Join Date
    Feb 2012
    Location
    Rome - Italy
    Posts
    1,893
    Hi Yvonne,
    I've try, but this css color all the row..

    Code:
    lianja_ui_tree::item:selectd {
    	background:white;
    	color:black;
    	border: 5px solid blue;
    }


    Name:  2016-12-06 15_29_47-Lianja App Builder v3.1.1 [read_xpo] - UTF-8 - projectmanager - Licensed to .png
Views: 260
Size:  12.3 KB
    thanks
    Fabio

  4. #4
    Lianja Team yvonne.milne's Avatar
    Join Date
    Feb 2012
    Location
    Berkshire, UK
    Posts
    1,840
    selected not selectd

  5. #5
    Thank you, Yvonne.

    Here is what I am using, but it doesn't seem to work. Any suggestions?

    Name of control: grdClientList

    Attribute
    CSS Style: app:/clientlist_section1_grdClientList_cssstyle.css

    clientlist_section1_grdClientList_cssstyle.css contents:

    Code:
    lianja_ui_tree::item:selected {
    background:white;
    color:black;
    border: 3px solid blue;
    }

  6. #6
    Lianja Team yvonne.milne's Avatar
    Join Date
    Feb 2012
    Location
    Berkshire, UK
    Posts
    1,840
    Hi Scott,

    That looks fine.
    Try saving and reloading the App to check that it is picking up the new css file.

    Regards,

    Yvonne

  7. #7
    Tried re-loading with no luck.

    I changed the .css file to this:

    Code:
    lianja_ui_tree::item:selected {
    background:white;
    color:black;
    border: 3px solid blue;
    }
    
    lianja_ui_tree {
    font-size: 28px;
    }
    and the font-size did change, but not the selected row color, so it appears to be reading the .css file.

  8. #8
    Senior Member
    Join Date
    Feb 2012
    Location
    Rome - Italy
    Posts
    1,893
    Quote Originally Posted by yvonne.milne View Post
    selected not selectd
    :-)

    thanks
    Fabio

  9. #9
    I changed the setting for "Can select rows" to True and the CSS formatting is working now.

    Thanks for your help, Yvonne!

  10. #10
    Lianja Team yvonne.milne's Avatar
    Join Date
    Feb 2012
    Location
    Berkshire, UK
    Posts
    1,840
    Hi Scott,

    That's great.

    Before I saw your last post I was wondering if you were wanting to change the border as you moved the mouse over the rows rather than when you actually selected a row.

    If anyone else is interested in this, you can use the 'hover' pseudo-state, e.g.

    Code:
    lianja_ui_tree::item:hover { 
    	border: 3px solid blue;
    }
    Regards,

    Yvonne

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us