Alternating row style and pring

Forums vLooup for SharePoint Alternating row style and pring

This topic contains 2 replies, has 2 voices, and was last updated by  Christopher Holubarz 2 weeks, 3 days ago.

  • Author
    Posts
  • #23305

    Hi Alex,

    I want to print rows from the vLookup Table in alternating style. It works to show the rows in alternating style with jQuery in the form itself, but when I want to print the tab, the style is not printed out with.

    Do you have a suggestion on how to set the css for the vLookup to alternating by default ? Maybe the dynamic setting with jQuery is the problem here.

    Thank you very much in advance,
    BR,
    Chris

  • #23325

    Alexander Bautz
    Keymaster

    Hi,
    You should be able to color alternating rows by adding this to the Custom CSS:

    .vLookupTableRow:nth-child(even){
        background-color:#eaeaea;
    }

    I’m working on an improved print functionality for the tabs so you might want to take a look at it and combine it with the above CSS snippet: https://spjsblog.com/forums/topic/page-breaks-when-printing-form/#post-23315

    Please note that its only tested in Google Chrome and I’m working on getting it running in other browsers.

    Alexander

  • #23357

    Hi Alexander,

    Thank you very much, that worked like a charm.

    BR,
    Chris

You must be logged in to reply to this topic.