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

  • SEARCH
  • Home
  • 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 9230187
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:45:41+00:00 2026-06-18T05:45:41+00:00

I have a dgrid displaying data in a table that contains many columns. The

  • 0

I have a dgrid displaying data in a table that contains many columns. The default layout of the dgrid causes all columns to be visible on the page, which means they are collapsed and it is unable to see the full header or data in each column.

Table with default layout

I would like to show all columns expanded to see all the data and header information contained within them. Then, I would need a horizontal scrollbar to scroll sideways to view all columns. I was able to do this by changing the default layout of dgrid-row-table from table-layout: fixed to table-layout: auto, but then the columns didn’t line up.

Table with full columns that don't line up

Is there a way to use a dgrid/OnDemandGrid with many columns and a horizontal scroll?

  • 1 1 Answer
  • 0 Views
  • 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-06-18T05:45:43+00:00Added an answer on June 18, 2026 at 5:45 am

    My solution doesn’t use dgrid/OnDemandGrid but still work.

    1/ put your grid in container like this :

    <div id="container">
        <div id="grid" style="width:100%;height:100%"></div>
    </div>
    

    2/ set width, height and scroll in your css :

    #container{
        height: 200px;
        width: 800px;
        overflow: auto;
    }
    

    3/ in the structure of your grid put the element “width” to “auto” :

    var gridLayout = [  
                      {
                          defaultCell: { width: 8, editable: false, type: cells._Widget, styles: 'text-align: right;'  },
                          cells:    [
                                     { name: "ID"               , field: "id"           , width: "auto" },
                                     { name: "Reg."             , field: "reg"          , width: "auto", editable: true },
                                     { name: "Type"             , field: "type"         , width: "auto" }
                      ];
    

    (for example)

    Rows will have a size large enough to show entirely their largest content and the div container will have scroll.

    Hope it will help.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have table that has multiple data for the same Id. I need to
I have a database Table Named P_Columns. This Table Contains the columns ID Column_Name
have 2 questions : A computer with 32-bit address uses 2-level page table (9
I have a DBGrid that shows a filtered view of a dBASE table. DBGrid
I am using dgrid for displaying data in grid format , it has four
I have seen in the output-Window of Visual Studio, that there occurs many times
I have the follow aspx page <asp:Content ID=Content2 ContentPlaceHolderID=contentConteudo runat=server> <table border=0 width=680 style=background-color:#f0f0f0
I have a dgrid, working with tree column plugin. Every time that the user
I have an custom TDatasetProvider that allows to create new fields to whatever data
How do you implement a dijit/TextBox which filters the data in an OnDemandGrid-style dGrid

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.