ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: xin on August 13, 2014, 06:11:14 pm

Title: how to draw a heavy column separator line?
Post by: xin 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.
Title: Re: how to draw a heavy column separator line?
Post by: paramvir 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
Title: Re: how to draw a heavy column separator line?
Post by: paramvir 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.