Jump to content

How to find that ScrollBar is showing in DBGrid


Recommended Posts

Hi there!


I want to know if the vertical scroll bar is showing, and if is possible to know its width.


I am auto calculating the width of the columns and when there is many rows and the grid shows up the veritical scroll bar my calculations goes wrong.


Thank you

Link to comment
Share on other sites

Hi eelias.
The width of the vertical scroll bar can be found so:
'document.getElementById("'+UniDBGrid1.JSName+'_id").parentNode.offsetWidth - 

I think you can always reduce to this value in the calculation, regardless of the visibility of scroll...


or use grid.headerCt.forceFit = true;


UniDBGrid1 - > ExtEvents - > reconfigure

function reconfigure(sender, store, columns, oldStore, the, eOpts){

Sorry if misunderstood the question.



  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...