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

At which event, the RadGrid Rebind() method should be called?

2 Answers 66 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Pooya
Top achievements
Rank 1
Pooya asked on 03 Oct 2011, 12:11 PM
I have a programmatically created RadGrid@

1) when it's rebound (Rebind() method is called) on Page_Init() event and added to a place holder on the page.

below features work fine:
  • Normal load
  • nested tables
  • Export to excel feature - the properties e.g. ExportDataOnly

Below feature doesn't work:
  • RadGrid Paging

2) When Rebind() is called on the RadGrid_PreRender event

The below features work fine:
  • Normal load
  • nested tables
  • RadGrid Paging

the below feature doesn't work:
  • Export to excel feature - the properties e.g. ExportDataOnly

************
Basically, at which event the RadGrid Rebind() method should be called so that all the above features of the RadGrid work?!

I tried these: RadGrid_Load, RadGrid_Init, Page_PreInit, etc but couldn't any location using which all these features work.

Please advise.

Thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Jayesh Goyani
Top achievements
Rank 2
answered on 03 Oct 2011, 12:39 PM
Hello,


http://www.telerik.com/help/aspnet-ajax/grid-commands-that-invoke-rebind-implicitly.html

for demo you can also check this demo.

note : we don't have to call Rebind explicitly in method like.. RadGrid_Load, RadGrid_Init, Page_PreInit,..

let me know if any concern.

Thanks,
Jayesh Goyani
0
Pooya
Top achievements
Rank 1
answered on 03 Oct 2011, 12:57 PM
thank you Jayesh - you made my day :)

Tags
Grid
Asked by
Pooya
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Pooya
Top achievements
Rank 1
Share this question
or