Author Topic: how to get rows to alternate colors  (Read 2668 times)

gib65

  • Newbie
  • *
  • Posts: 3
    • View Profile
how to get rows to alternate colors
« on: January 11, 2016, 02:14:14 am »
Hello,

I'm new to ParamQuery's PQGrid. I just downloaded it and I'm trying it out. It works great. One thing I can't figure out though is how to get the rows to alternate colors. Can someone help me out?

Thanks.

jeff_b

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: how to get rows to alternate colors
« Reply #1 on: January 27, 2016, 01:34:48 am »
add  the value
Code: [Select]
   stripeRows: true
  into the object you pass into create the object.  (Should be the same place you set the title, etc)

alternatively with jQuery after the object has been created
Code: [Select]
   $( "#grid_div_id" ).pqGrid( "option", "stripeRows", false );


I believe its only support for custom themes such as office (based on the note ' Currently this option is supported only for custom themes e.g. 'Office' theme.' on http://paramquery.com/pro/api24)


Disclaimer: I am not affiliated with paramquery just bored and wanting to help.