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

NeedDataSource fires twice on load

1 Answer 279 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 1
Eric asked on 22 Apr 2009, 03:03 PM
I have two rad grids on a page that both use a codebehind  NeedDataSource event.  on page load and grid refresh the NeedDataSource event fires twice making two calls to the database.  Is this normal behavior or is there something set up in the grid wrong?

Both grids also have the following eventsDetail TableBind, ItemDataBound, and ItemCommand

thanks

1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 24 Apr 2009, 12:03 PM
Hello Eric,

Can you show us sample code for this behavior?
You can find RadGrid event sequence on the link below:
Event sequence
and list of command which will implicitly rebind RadGrid:
Commands that invoke Rebind() implicitly

Sincerely yours,
Nikolay
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
Eric
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Share this question
or