Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
500
Ultrawebgrid scrolling problem
posted

Hi,

i've a grid with autoscroll on and paging on. for each grid page i've an incorrect vertical scrollbar and a wide Frame region grater than real data inside. I've set PageRows in Pager.

Thanks, George

Here's my code (inside of InizializeLayout of my custom grid) :

   Me.DisplayLayout.Pager.PageSize = 100

    Me.Browser = UltraWebGrid.BrowserLevel.Xml
    Me.DisplayLayout.LoadOnDemand = UltraWebGrid.LoadOnDemand.Xml
    Me.DisplayLayout.XmlLoadOnDemandType = UltraWebGrid.XmlLoadOnDemandType.Background

    With Me.DisplayLayout
      .AutoGenerateColumns = False
      .CellClickActionDefault = UltraWebGrid.CellClickAction.RowSelect
      .CellTitleModeDefault = UltraWebGrid.CellTitleMode.Always
      .HeaderClickActionDefault = UltraWebGrid.HeaderClickAction.Select
      .HeaderTitleModeDefault = UltraWebGrid.CellTitleMode.Always

      .ScrollBar = UltraWebGrid.ScrollBar.Auto
      .StationaryMargins = UltraWebGrid.StationaryMargins.Header

      .ViewType = Infragistics.WebUI.UltraWebGrid.ViewType.Flat


      .AllowSortingDefault = Infragistics.WebUI.UltraWebGrid.AllowSorting.Yes
      .SelectTypeRowDefault = Infragistics.WebUI.UltraWebGrid.SelectType.Single

      .HeaderStyleDefault.BorderStyle = System.Web.UI.WebControls.BorderStyle.Solid
      .HeaderStyleDefault.BackColor = System.Drawing.Color.LightGray
      .HeaderStyleDefault.BorderDetails.ColorTop = System.Drawing.Color.White
      .HeaderStyleDefault.BorderDetails.ColorLeft = System.Drawing.Color.White
      .HeaderStyleDefault.BorderDetails.WidthLeft = System.Web.UI.WebControls.Unit.Pixel(1)
      .HeaderStyleDefault.BorderDetails.WidthTop = System.Web.UI.WebControls.Unit.Pixel(1)

      .FrameStyle.BorderWidth = System.Web.UI.WebControls.Unit.Pixel(1)
      .FrameStyle.Height = New Unit("400px")
      .FrameStyle.BorderStyle = System.Web.UI.WebControls.BorderStyle.Solid
      .FrameStyle.BorderDetails.ColorTop = System.Drawing.Color.White
      .FrameStyle.BorderDetails.ColorLeft = System.Drawing.Color.White
      .FrameStyle.BorderDetails.WidthLeft = System.Web.UI.WebControls.Unit.Pixel(1)
      .FrameStyle.BorderDetails.WidthTop = System.Web.UI.WebControls.Unit.Pixel(1)
      .FrameStyle.Width = New Unit("100%")

      .FooterStyleDefault.BorderWidth = System.Web.UI.WebControls.Unit.Pixel(1)
      .FooterStyleDefault.BorderStyle = System.Web.UI.WebControls.BorderStyle.Solid
      .FooterStyleDefault.BackColor = System.Drawing.Color.LightGray

      .EditCellStyleDefault.BorderWidth = System.Web.UI.WebControls.Unit.Pixel(1)
      .EditCellStyleDefault.BorderStyle = System.Web.UI.WebControls.BorderStyle.Inset

      .RowAlternateStyleDefault.CssClass = "rowAlternateA"

      .RowStyleDefault.BorderWidth = System.Web.UI.WebControls.Unit.Pixel(1)
      .RowStyleDefault.BorderStyle = System.Web.UI.WebControls.BorderStyle.Solid
      .RowStyleDefault.CssClass = "rowAlternateB"
      .RowStyleDefault.Padding.Left = System.Web.UI.WebControls.Unit.Pixel(3)
      .RowStyleDefault.BorderDetails.WidthLeft = System.Web.UI.WebControls.Unit.Pixel(0)
      .RowStyleDefault.BorderDetails.WidthTop = System.Web.UI.WebControls.Unit.Pixel(0)

      .SelectedRowStyleDefault.BackColor = System.Drawing.Color.FromName("#80FF80")

      .Pager.AllowPaging = True

      .Pager.AllowCustomPaging = False
      .Pager.PagerStyle.BorderWidth = System.Web.UI.WebControls.Unit.Pixel(1)
      .Pager.PagerStyle.BorderStyle = System.Web.UI.WebControls.BorderStyle.Solid
      .Pager.PagerStyle.BackColor = System.Drawing.Color.LightGray

      .Pager.PagerStyle.BorderDetails.ColorTop = System.Drawing.Color.White
      .Pager.PagerStyle.BorderDetails.WidthLeft = System.Web.UI.WebControls.Unit.Pixel(1)
      .Pager.PagerStyle.BorderDetails.WidthTop = System.Web.UI.WebControls.Unit.Pixel(1)
      .Pager.PagerStyle.BorderDetails.ColorLeft = System.Drawing.Color.White

      .AllowColSizingDefault = Infragistics.WebUI.UltraWebGrid.AllowSizing.Free

end with