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

RebindReason Always InitialLoad...Please Help

1 Answer 126 Views
Grid
This is a migrated thread and some comments may be shown as answers.
mpaul
Top achievements
Rank 1
mpaul asked on 17 Jan 2011, 06:25 PM
I am using the NeedDataSource to handle my grid's sorting and paging and I am running into an issue. I do not want my grid to display its records on page load, so I wire up the OnNeedDataSource event handler in the page load when its a postback. Now, I need to distinguish when the user clicks the search button (which calls grid.rebind()) and when the user pages or sorts. I thought I could just check the re-bind reason, but it always states "InitialLoad".  

Any ideas?

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 20 Jan 2011, 01:10 PM
Hi,

Easiest way for achieving this functionality is to set visible="false" for the RadGrid when you do not need it to rebind and set is back to "true" when this needed.

Best wishes,
Maria Ilieva
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Grid
Asked by
mpaul
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or