Skip to main content

dojo.table scrollbar ?

2 replies [Last post]
extazia
Offline
Joined: 2007-04-17
Points: 0

hi,
i'm a beginner in jmaki,
i've made some search on the web but i didn't found anything about it,
how can i insert a vertical scrollbar in my dojo.table ?
is it possible ?

thank ;)

ps: sorry for my english

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
gmurray71
Offline
Joined: 2003-07-31
Points: 0

Hi,

The dojo widget does not have this out of the box but you could put it in a set size container with overflow set as auto (this is a CSS thing) :

Try the following:

<div> style="width:300px;height:200px;overflow-y:auto">
value="{columns:
[{ 'title' : 'Title'},
{ 'title' : 'Author'},
{ 'title' : 'ISBN'},
{ 'title' : 'Description'}
],
rows:[
['JavaScript 101', 'Lu Sckrepter','4412', 'Some long description'],
['JavaScript 102', 'Lu Sckrepter','4412', 'Some long description'],
['JavaScript 103', 'Lu Sckrepter','4412', 'Some long description'],
['JavaScript 104', 'Lu Sckrepter','4412', 'Some long description'],
['JavaScript 105', 'Lu Sckrepter','4412', 'Some long description'],
['Ajax with Java', 'Jean Bean','4413', 'Some long description']
]}" />
</div>
Adjust the style height property to change how big the region is.

Let us know if this doesn't work.

Message was edited by: gmurray71

extazia
Offline
Joined: 2007-04-17
Points: 0

thaanks :)
it was exactly what i was looking for :)

it works pretty well .
thank you

Message was edited by: extazia