Muthukamatchi Ganesan
Muthukamatchi Ganesan

Reputation: 373

telerik radgrid cannot display all the records

I need to show all the records in telerik radgrid without pagesize.

By default it's takes only 10 records as pagesize.

How to solve this?

Upvotes: 0

Views: 3227

Answers (3)

Francis P
Francis P

Reputation: 13655

You are specifying PagerStyle which might be enabling paging...so don't. Also, don't specify AllowPaging="True".

 <telerik:RadGrid ID="ResultGrid" runat="server" ClientSettings-Scrolling-AllowScroll="true"
      GridLines="Vertical" AlternatingItemStyle-BackColor="#E3EEFE" BorderColor="#E3EEFE"
      HeaderStyle-BorderColor="#E3EEFE" HeaderStyle-BackColor="#C8DCF2" AllowSorting="true"
      AllowPaging="False" AllowFilteringByColumn="false">
          <ClientSettings>
               <Scrolling AllowScroll="false"/>
          </ClientSettings>
 </telerik:RadGrid>

Also, a good thing to do is to fix the height of your RadGrid to fit your screen. Then use those settings:

  <ClientSettings>
       <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True" />
  </ClientSettings>

Should be more user-friendly this way.

Upvotes: 1

Rob
Rob

Reputation: 406

It sounds like you just need to remove paging from the radgrid. You can do this by setting the "AllowPaging" property on the radgrid in the aspx to be false.

<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="false">
</telerik:RadGrid>

Upvotes: 0

Razvan Trifan
Razvan Trifan

Reputation: 544

What if you set the PageSize programatically before you bind it?

RadGrid1.PageSize = myCollection.Count;
RadGrid1.DataSource = myCollection;
RadGrid1.DataBind();

Upvotes: 3

Related Questions