Monday, November 23, 2009

does not contain a definition for 'RadGridTradeOrders_NeedDataSource' and no extension method 'RadGridTradeOrders_NeedDataSource'

I fixed this by going into the code behind of the aspx file and removed the line: onneeddatasource="RadGridTradeOrders_NeedDataSource"

I think this occurred because I was editing the a radgrid control by changing the data field name. Because my datasource was dynamic, changing this field caused the attribute above to be added automatically.

NOTE: I also believe that making custom changes in the source code (aspx) for this control causes unnecessary issues. Therefore, I would recommend using the design view to set properties on the telerik controls.

No comments: