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

[Solved] Grid dissapears when using pager

1 Answer 104 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Will
Top achievements
Rank 1
Will asked on 11 Jun 2009, 07:51 PM
Hello group,
ASP.NET 2.0, VISTA, IE 7.0.5730.13, ASPNET AJAX Q1 2009, prefer VB.NET

I have a grid that I have bound to an ILIST of custom business objects and want to use the radGrid's paging ability with it.

I've gotten the grid to bind and load the first page.  Everything looks great.

When I click on the pager to move to the next page i get a callback (i'm using the RadAjaxManager) the callback happens and the grid dissapears.

I know this isn't a ton of great information but i'm frankly not sure where to start looking.

Any guidance on where to start troubleshooting this?

Many thanks
Will


1 Answer, 1 is accepted

Sort by
0
Accepted
Daniel
Telerik team
answered on 11 Jun 2009, 09:37 PM
Hello Will,

This usually happens when you bind RadGrid as shown below:
protected void Page_Load(object sender, EventArgs e)  
{  
    if (!IsPostBack)  
    {  
        //RadGrid1.DataSource = something;  
    }  

In this case I recommend you use Advanced data-binding with NeedDataSource. For more information, please visit the following links:
Advanced Data-binding documentation
Advanced Data Binding online demo

Regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Will
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or