protected
void RadGrid_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
{
DataClassesDataContext MyData = new DataClassesDataContext();
var LINQQuery = from MyObject in MyData.Objects
select new
{
Object_Type = MyObject.Object_Type.Name,
Owner = MyObject.Owner_ID
};
RadGrid.DataSource = LINQQuery;
}
On execution my RadGrid object shows no data (if I put the exact same query in the Page_Load event with DataBinf and assign it to a normal GridView then it works no problem.
I am sure I am missing something obvious but it's late so I need somebody to point it out.
Many thanks,
Tim
Everything was working fine. We've upgraded to 2009.1.527.35 and it broke the close command on docs.
DockCloseCommand objDockCloseCommand = new DockCloseCommand();
objDockCloseCommand.OnClientCommand =
"dockClose_Click";
objDockCloseCommand.Text =
"Close";
currentDock.Commands.Add(objDockCloseCommand);
function dockClose_Click() {
//this never gets executed
alert(
'test');
}
Funny part about it is that if dockClose_Click does not exist I get an error when page loads.
Please help, this is urgent.
