Author Topic: how to draw a heavy column separator line?  (Read 2796 times)

xin

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 14
    • View Profile
how to draw a heavy column separator line?
« on: August 13, 2014, 06:11:14 pm »
Hi,

I am use the paramquery 2.0.4.  I need to draw a heavy vertical border line for a particular column (ex. column #6).  I have 2 questions:
1. Will you be able to provide sample code? 
2. Will you be able to provide sample on how to retrieve first visible column # from the horizontal scroll bar position ?

Thanks.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6297
    • View Profile
Re: how to draw a heavy column separator line?
« Reply #1 on: August 14, 2014, 05:17:29 pm »
1) Right border of a column can be drawn with css rule ( border-right ) by assigning a class to the column.

http://paramquery.com/pro/api#option-column-cls

2) you can get colIndx of first visible column from ui.initH property in beforeTableView event.

http://paramquery.com/pro/api#event-beforeTableView

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6297
    • View Profile
Re: how to draw a heavy column separator line?
« Reply #2 on: August 20, 2014, 11:47:59 am »
Xin

I've put up an example to draw a column border for you.

http://jsfiddle.net/paramquery/wruocf6t/2/

Please let me know if you need any further assistance.