NetTalk Central

Author Topic: Scroll bar on browse  (Read 3720 times)

olu

  • Sr. Member
  • ****
  • Posts: 352
    • View Profile
    • Email
Scroll bar on browse
« on: April 06, 2009, 09:20:08 AM »
Please is there anyway to have scroll bars on the browse generated?

Rene Simons

  • Hero Member
  • *****
  • Posts: 650
    • View Profile
Re: Scroll bar on browse
« Reply #1 on: April 06, 2009, 12:31:44 PM »
Hi,

No, imho not in the way browses are build in NTWS.
There is a way however to do it with Zapatec or extjs, but this requires a different approach of programming your browses.

Best regards,
Rene
Rene Simons
NT14.14

Rene Simons

  • Hero Member
  • *****
  • Posts: 650
    • View Profile
Re: Scroll bar on browse
« Reply #2 on: April 23, 2009, 02:37:25 AM »
Olu,
I was experimenting in a html editor and suddenly I had an idea.
Because it didn't work out as I expected I wrote to our mutual friend Bruce and he sent me this answer.
I think you will find this very interesting.....

====================
Hi Rene,

I think you're on the right track. However you need to put a "unit" into the height field.
eg
<div style="height:100px;width=150px;overflow:auto;">
The width one may not be necessary - if you leave it out it defaults to the normal width. If you want to limit the width then the current width is irrelevant.

For version 4.31 PR 35 I've added an extra DIV to the generated code. This allows the browse table to be in the scroll, but the browse heading, and importantly, the nav buttons below remain out.
In other words, I've added the div so you don't need to.
You can set the CSS for the DIV on the Styles tab (of the Browse.)
It's called "BrowseTableDiv".
You will almost certainly want / need a custom style for any browse that you attach this to.
As an example I've included the style
'ScrollBrowse'
in netweb.css though.

I'll try and get PR35 built and uploaded today.

Cheers
Bruce
===================================
Rene Simons
NT14.14