Skip to content

Infragistics Community Forum / Web / Ultimate UI for ASP.NET Web Forms / Can the WebDataGrid Scroll Horizontally?

Can the WebDataGrid Scroll Horizontally?

New Discussion
Scott
Scott asked on Jun 6, 2012 4:29 PM

Can the WebDataGrid Scroll Horizontally? If so, how do I get it to work. If not, then why in the world doesn't it? I'm using 10.1, what control can I use instead?

Sign In to post a reply

Replies

  • 0
    Atanas Barabanov
    Atanas Barabanov answered on May 20, 2010 9:24 AM

    Hi,

    Yes, the WebDataGrid supports horizontal scrolling. You do not need to do anything.

    If the total columns width is bigger than the WebDataGrid with a horizontal scroll bar

    is shown automatically.

    Thank you,

    Atanas

    • 0
      Scott
      Scott answered on May 20, 2010 3:23 PM

      What I want is for the other columns not to shrink to oblivion but to
      move off screen and a horizontal scroll bar to appear. Is there anyway
      to get it to do this?

      Try it on the infragistics sample page. Make one of the columns wider. The other columns shrink down. You only get a scrollbar when the other columns can't be shrunk any more and are forced off the page. Then you get a scrollbar that only allows you to view the shrunken columns and re-size them

       

      • 0
        [Infragistics] Dinesh Hosamani
        [Infragistics] Dinesh Hosamani answered on May 21, 2010 5:22 PM

        Hi Scott,

        Looks like I am not following your requirement. The scrollbar appears if you have a DefaultColumnWidth set for each columns. If the total of the column widths is greater than the grid with the horizontal scrollbar appears.

        You can also leave the DefaultColumnWidth as empty which will behave like "auto". If you have a width set off the control itself then the columns will stretch to the size of its data and create a scrollbar if needed. Otherwise the grid will be as large as the data is as mentioned in the following post.

        https://www.infragistics.com/community/forums/f/ultimate-ui-for-asp-net/34019/no-scrollbars-with-resizd-columns#184847

        If you do not want the cell text to be wrapped. Please refer to the following post.

        https://www.infragistics.com/community/forums/f/ultimate-ui-for-windows-forms/59495/win-grid—limit-cell-length-input#59495

         

      • 0
        Scott
        Scott answered on May 21, 2010 7:05 PM

        Thanks. Setting the DefaultColumnWidth did it. Once I set that it scrolls like I expect it to and as a side benefit it fixed an issue I was having with IE when I paged.

      • 0
        Rob
        Rob answered on Jun 6, 2012 4:29 PM

        But this doesn't auto resize the columns based on the width of the largest item in each column if that width is larger than the defaultcolumnwidth.  how can we auto resize each column based on the width of the largest item in each column?

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Scott
Favorites
0
Replies
5
Created On
Jun 06, 2012
Last Post
14 years, 2 months ago

Suggested Discussions

Created by

Created on

Jun 6, 2012 4:29 PM

Last activity on

Jun 6, 2012 4:29 PM