Data Grid Scroll Bar Position

Moderators: heatherlaine, kevinmiller, robinmiller, Zryip TheSlug

Post Reply
hrcap
Posts: 131
Joined: Mon Jan 14, 2019 5:20 pm

Data Grid Scroll Bar Position

Post by hrcap » Fri Jun 21, 2019 1:44 pm

Hi All

I hope that everyone has had a good week.

I have a data grid on my card and currently the scroll bar is sitting 15 points from the right of the card, I would like to move the scroll bar so that it sits on the right of the card but I cannot work out how to do this.

Any assistance would be greatly appreciated.

I have attached a screenshot to display the position of the scrollbar.



Many Thanks
Attachments
Datagrid Scroll Bar Position.jpg

hrcap
Posts: 131
Joined: Mon Jan 14, 2019 5:20 pm

Re: Data Grid Scroll Bar Position

Post by hrcap » Fri Jun 21, 2019 2:26 pm

... I have now worked out why this was happening:

Firstly you need to hide the scrollbar of the datagrid group, then the size of the scrollbar created for that group can have its width adjusted

Code: Select all

   if the environment is not mobile then
      set the vscrollbar of group "datagrid_qualificationmodules" to false --gets rid of the standard scrollbar as it is going to be replaced with a thin one
      set the width of scrollbar dgScrollbar to 5 --sets the scrollbar width
   end if


Post Reply

Return to “Data Grid Helper”