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

RadGrid in ASP View does not fire OnNeedDataSource

3 Answers 143 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nathan
Top achievements
Rank 1
Nathan asked on 29 Mar 2011, 07:46 PM
Hello,

I am new to the Telerik controls and I am having a problem trying to find out why my data grid is not loading. It will work fine when it loads the web page without the grid being in a view but if I put it in a view then all I get is the outline when the page loads.

If I use a datasource and call rebind on the grid then it will work but not when it uses OnNeedDataSource. It does not get fired if the grid is not on the first page view displayed.

I would appreciate any help or pointing me in the right direction.

Thanks

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 30 Mar 2011, 02:24 PM
Hello Nathan,


The OnNeedDataSource event fires when grid is visible on page (Visible="true") and when EnableViewState is not set as "False". Please go through the follwoing link and see whether you are able to rectify the problem.
Advanced Data-binding (using NeedDataSource event)

Could you please paste the code if this does not help?


Thanks,
Princy.
0
Nathan
Top achievements
Rank 1
answered on 30 Mar 2011, 02:47 PM
I had gone through all of this information on the advanced data binding and nothing I did would work as long as it was in an asp:MultiView. But then after much searching I discovered the telerik:RadMultiPage and telerik:RadPageView controls and everything works as I would expect when I use them instead of the standard asp page view controls.

Thanks
0
Iana Tsolova
Telerik team
answered on 01 Apr 2011, 03:10 PM
Hello Nathan,

Find more information on RadGrid visible/invisible conventions in the below article:
http://www.telerik.com/help/aspnet-ajax/grid-visible-invisible-conventions.html

Best wishes,
Iana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Nathan
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Nathan
Top achievements
Rank 1
Iana Tsolova
Telerik team
Share this question
or