Author Topic: How to set background picture for grid  (Read 1841 times)

msdnweixiao

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 21
    • View Profile
How to set background picture for grid
« on: November 06, 2020, 08:55:09 am »
i have a png pic, now i want  to set it as background picture for grid, how i do?
thank you

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: How to set background picture for grid
« Reply #1 on: November 06, 2020, 09:23:42 am »
2 steps:

Set the background of all children of grid body to transparent.

Then set the background of grid body.

Code: [Select]
.pq-body-outer *{
background: transparent !important
}
.pq-body-outer{
background-image: url("...........");
}

msdnweixiao

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: How to set background picture for grid
« Reply #2 on: November 06, 2020, 10:59:43 am »
yes, it workd.

but the stripeRows does not worked, why?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: How to set background picture for grid
« Reply #3 on: November 06, 2020, 11:43:44 am »
because rows are children of grid body and we set their background to transparent.