Author Topic: Getting exception for scrollbar  (Read 1773 times)

npdev13

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 21
    • View Profile
Getting exception for scrollbar
« 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,

« Last Edit: May 31, 2019, 04:43:31 pm by npdev13 »

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Getting exception for scrollbar
« Reply #1 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