I'm currently using the Telerik Controls for Ajax with SharePoint 2010 to create custom web parts and I'm having an issue with the RadGrid and posting back events.
I am dynamically creating the grid in the CreateChildControls method of the SharePoint Web Part and binding the grid on specific conditions.
Allow Sorting is true:
With this event:
I've also tried using the "NeedDataSource" event, but whenever I click on a column header to sort the grid the page does postback but the SortCommand event is never fired and I lose the binding. I also have the RadAjaxManager registered in my masterpage.
What am I do doing wrong? This is extremely frustrating.
I am dynamically creating the grid in the CreateChildControls method of the SharePoint Web Part and binding the grid on specific conditions.
Allow Sorting is true:
this.gvDocumentsGrid.AllowSorting = true;
With this event:
this.gvDocumentsGrid.SortCommand += new GridSortCommandEventHandler(gvDocumentsGrid_SortCommand);
I've also tried using the "NeedDataSource" event, but whenever I click on a column header to sort the grid the page does postback but the SortCommand event is never fired and I lose the binding. I also have the RadAjaxManager registered in my masterpage.
What am I do doing wrong? This is extremely frustrating.