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

[Solved] RadGrid - Problem with the Sorting & Paging

1 Answer 105 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
MeetJayBlack
Top achievements
Rank 1
MeetJayBlack asked on 13 Jun 2008, 09:23 AM
Hi,

I'm using the RADGrid to show some search result and I'm using a method (Search()) which basically calls a StoredProcedure  to fetch the search result based on the search text. I have RADAjax Manager pice that gives me the desired behavior of not refreshing the page (Postback) and rather shows the result accordingly.

Now the problem is when I goto different pages it works fine but the moment I sort it on some column it shows "No Records to display" even though there are records in the data source. 

I have basically a ASP Button and on Click event it calls the Search() method. apart from this I also have the OnPageIndexChanged & OnSortCOmmand event where in I call the Search() method again. I'm doing this way based on the examples I have gone so far. I'm pretty newbie in using the AJAX RadGrid. I would really appreciate if anyone can write a sample for me to understand how to implement RADGrid in such scenario.

Any help is appreciated.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 13 Jun 2008, 10:39 AM
Hi,

How do you bind the Grid? Try binding the Grid using AdvanceDataBinding technique.
Advanced data-binding

Princy.
Tags
General Discussions
Asked by
MeetJayBlack
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or