ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: npdev13 on May 31, 2019, 04:35:16 pm

Title: Getting exception for scrollbar
Post by: npdev13 on May 31, 2019, 04:35:16 pm
Hello,

I was using free version till now and have implemented some of the functionality but in recently purchase pro version it is not working and giving me exception.

In Free version I was able to execute following code without any error.

var $pqScrollbar = $("#grid_editing").find("div.pq-sb-vert").pqScrollBar();
$pqScrollbar.pqScrollBar({ cur_pos: 0 });

But same thing when I try for Pro version I am getting error

Uncaught TypeError: $(...).find(...).pqScrollBar is not a function

I am calling that above two line from external dropdown change event. Can you please tell me how to resolve it.

I have attached sample HTML file which I have modified given with pro sdk.

Thanks,

Title: Re: Getting exception for scrollbar
Post by: paramvir on May 31, 2019, 09:56:05 pm
Pro version uses native scrolling and there is no pqScrollbar component in it.

Scrollbar can be programmatically manipulated with sccrollY API.

https://paramquery.com/pro/api#method-scrollY