Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 910565
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T17:03:55+00:00 2026-05-15T17:03:55+00:00

My code for creating the data table looks like this: myDataTable = new YAHOO.widget.ScrollingDataTable(

  • 0

My code for creating the data table looks like this:

myDataTable = new YAHOO.widget.ScrollingDataTable(
                    "containerDiv",
                    myColumnDefs,
                    myDataSource,
                    {height:"100px",width:"100%"}
                  );

That code produces a table that looks something like this:
(Screen shot not available anymore from external site)
http://drop.io/download/public/gfipf7axm6ydjsvuaiaf/296829ffb3ad115ecf1d9e13a607eaf2e2dc2788/Asset/37984293/v3/large_thumbnail

Notice how it creates an outer box stretching 100% just like I want it to, but the table itself does not stretch all the way 100%, instead it is only large enough to fit the contents of the table.

Please note that the outer box that stretches 100% is created by YUI when you run the above code, I didn’t create that myself.

What I really need is just vertical scrolling and no horizontal scrolling. But YUI does not let you specify one or the other, you get both.

Is there a way to make the table stretch 100%? I didn’t find anything about this issue in the YUI documentation, unless I have overlooked it.

Thanks for reading!

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T17:03:56+00:00Added an answer on May 15, 2026 at 5:03 pm

    When you use a ScrollingDataTable and specify a width, the columns are not auto-sized. This makes sense when you think about it – the table must handle cases where there are too many columns to fit in the view, so it doesn’t attempt to fit them.

    Since it looks like you don’t need horizontal scrolling, remove the width config attribute. To get the table to your desired width, you can try:

    • Specifying the width in css on the container div, rather than in the table config
    • Specifying column widths so they add up to the total width that you want.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 512k
  • Answers 512k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You might look here, I think you should correct license.properties… May 16, 2026 at 5:34 pm
  • Editorial Team
    Editorial Team added an answer Try tag soup and build it yourself. You get a… May 16, 2026 at 5:34 pm
  • Editorial Team
    Editorial Team added an answer If you are using prototype and don't want to roll… May 16, 2026 at 5:34 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I am having problems creating WCF client proxy for service code like in this
When retrieving a lookup code value from a table, some folks do this... Dim
I have an ASP.NET GridView which has columns that look like this: | Foo
I am creating a dynamic table control with ASP.NET/C# and the table is being
I am trying to alter a table in SQL server with a script. In
I'm not much of a web programmer, but I'm creating a simple web app
I have two tables. Widgets, which has information about each widget (Color, size, etc);
Why is Django executing statements such as this: SELECT (1) AS [a] FROM [my_table]
I am creating an application where I am calling my database from a different
I am creating a django-based site that will serve flash apps that occasionally access

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.