This is a migrated thread and some comments may be shown as answers.

PageSize not working?

1 Answer 90 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tim R
Top achievements
Rank 1
Tim R asked on 19 Mar 2009, 07:09 PM
Using 2008.1.619.20

I want to make the RadGrid display only  4 rows of data, scroll, and not allow paging. What am I doing wrong? It is displaying  about 13 rows of data (bottom pixels of 13th row's data are cut off). The scrollbar is there, but it seems to be ignoring PageSize.

 

 

 

With Radgrid1

 

  .DataSource = T

  .DataMember = T.TableName

  .DataBind()

  .Columns(0).Visible = False

 

  .EnableViewState = True

  .PageSize = 3

 

    With .ClientSettings

 
       .Resizing.AllowRowResize = False

       .Scrolling.AllowScroll = True

      .Selecting.AllowRowSelect = True
 

    End With

 

  .Height = New System.Web.UI.WebControls.Unit("44px")

  .Width = New System.Web.UI.WebControls.Unit("400px")

 

  .ShowHeader =False 
  .ShowFooter = False
 

End With

 

 

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 20 Mar 2009, 12:45 PM
Hi,

PageSize property sets the number of Grid rows to be displayed in a page(with AllowPaging= true). If you want to show only four rows in a Grid along with Scrolling you may set the ScrollHeight property to a specified value.

VB:
 
 
     RadGrid1.ClientSettings.Scrolling.AllowScroll = True 
     RadGrid1.ClientSettings.Scrolling.ScrollHeight = Unit.Pixel(150) 
 
 


Thanks
Shinu.
Tags
Grid
Asked by
Tim R
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or