I'm just starting to demo the RadGrid and decided to copy the example from:-
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/slider/defaultcs.aspx
I pasted in the sample code from the DefaultCS.aspx and DefaultVB.aspx.vb sections. I did some slight modifications so I was calling data from our own database and ran the project. I noticed in SQL Server profiler that my query was being called twice everytime I used the page slider. After looking at the sample code that I pasted in I noticed that if I remove:-
OnNeedDataSource="RadGrid1_NeedDataSource"
... from the HTML (DefaultCS.aspx) if only fires once. Everything still seems to work fine still. Is this a mistake in your sample and is it not required or have I maybe done something wrong when I cut and pasted the sample code into our application? I am just checking that removing this from the HTML will not have any implications.
Thanks
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/slider/defaultcs.aspx
I pasted in the sample code from the DefaultCS.aspx and DefaultVB.aspx.vb sections. I did some slight modifications so I was calling data from our own database and ran the project. I noticed in SQL Server profiler that my query was being called twice everytime I used the page slider. After looking at the sample code that I pasted in I noticed that if I remove:-
OnNeedDataSource="RadGrid1_NeedDataSource"
... from the HTML (DefaultCS.aspx) if only fires once. Everything still seems to work fine still. Is this a mistake in your sample and is it not required or have I maybe done something wrong when I cut and pasted the sample code into our application? I am just checking that removing this from the HTML will not have any implications.
Thanks