<EditFormSettings EditFormType="Template">   <EditColumn UniqueName="EditCommandColumn1">   </EditColumn>   <FormTemplate>     <asp:Panel ID="pnlZForm" runat="server">       <div id="divZEdit">         <asp:Label ID="lblMerchantCode" Width="150px" runat="server" Text="Merchant Code:" />         <telerik:RadTextBox ID="rtxtMerchantCode" Runat="server" Width="150px" />         <br />         <asp:Label ID="lblAccountName" Width="150px" runat="server" Text="Account Name:" />         <telerik:RadTextBox ID="rtxtAccountName" Runat="server" Width="150px" />         <br />         <asp:Label ID="lblSharedSecret" Width="150px" runat="server" Text="Shared Secret:" />         <telerik:RadTextBox ID="rtxtSharedSecret" Runat="server" Width="150px" />         <br />         <telerik:RadButton ID="btnUpdate" runat="server" Text="Update" />         <telerik:RadButton ID="btnCancel" runat="server" Text="Cancel" CommandName="Cancel" />       </div>     </asp:Panel>   </FormTemplate> </EditFormSettings>Private Sub rgdNewRadGrid_DetailTableDataBind(ByVal source As Object, ByVal e As GridDetailTableDataBindEventArgs) Handles rgdNewRadGrid.DetailTableDataBind   Dim dataItem As GridDataItem = CType(e.DetailTableView.ParentItem, GridDataItem)     Select Case e.DetailTableView.Name     Case "myDetailTable"      Dim myTrackingGUID As Guid = New Guid(dataItem.Item("MerchantTrackingGUID").Text)       Dim myDataSet As New DataSet         '===Get the DetailTable data===       myDataSet = *get dataset from database*         e.DetailTableView.DataSource = myDataSet       e.DetailTableView.CommandItemDisplay = GridCommandItemDisplay.Top       e.DetailTableView.CommandItemSettings.AddNewRecordImageUrl = "../Img/AddRecord.gif"      e.DetailTableView.CommandItemSettings.AddNewRecordText = "Add New Details"      e.DetailTableView.CommandItemSettings.ShowRefreshButton = False      e.DetailTableView.EditFormSettings.EditFormType = GridEditFormType.Template       e.DetailTableView.EditFormSettings.FormTemplate = LoadTemplate("Templates/myNewAdd.ascx")   End SelectEnd Sub<%@ Control Language="VB" ClassName="myNewAdd" %> <asp:Panel ID="pnlNewForm" runat="server">   <div id="divNewEdit">     <asp:Label ID="lblTerminalUserGroupID" Width="150px" runat="server" Text="TerminalUserGroupID:" />     <telerik:RadComboBox ID="rcbxTerminalUserGroupID" Width="200px" runat="server" />     <br />     <telerik:RadButton ID="btnDetailUpdate" runat="server" Text="Update" />     <telerik:RadButton ID="btnDetailCancel" runat="server" Text="Cancel" CommandName="Cancel" />   </div> </asp:Panel>Protected Sub rgdNewRadGrid_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles rgdNewRadGrid.ItemDataBound   If e.Item.IsInEditMode AndAlso e.Item.OwnerTableView.Name = "myDetailTable" Then    Dim editItem As GridEditFormItem = e.Item     Dim rcbxTerminalUserGroupID As RadComboBox = editItem.FindControl("rcbxTerminalUserGroupID")     Dim myDataSet As Data.DataSet       myDataSet = *get data from database*       For Each row As DataRow In myDataSet.Tables(0).Rows       Dim myItem As New RadComboBoxItem       myItem.Text = row.Item("NAME").ToString       If Not rcbxTerminalUserGroupID Is Nothing Then        rcbxTerminalUserGroupID.Items.Add(myItem)       End If    Next  End IfEnd Sub

Hi,
I have a page with the radgrid ,which is coded as below:
<telerik:RadGrid ID="rgSchool" ShowGroupPanel="false" ShowStatusBar="true" AllowCustomPaging="true" 
RegisterWithScriptManager="true" runat="server" AutoGenerateColumns="False" AllowSorting="True"
GridLines="Vertical" OnSortCommand=" rgSchool _SortCommand" AllowMultiRowSelection="False"
AllowPaging="True" Skin="Vista" OnNeedDataSource=" rgSchool _NeedDataSource"
OnPageIndexChanged=" rgSchool _PageIndexChanged" OnPageSizeChanged=" rgSchool _PageSizeChanged"
OnItemDataBound=" rgSchool _ItemDataBound" OnGroupsChanging=" rgSchool _GroupChanging"
OnColumnHiding=" rgSchool _ColumnHidden">
<SortingSettings EnableSkinSortStyles="false" />
<PagerStyle Mode="NextPrevNumericAndAdvanced" AlwaysVisible="true"></PagerStyle>
<MasterTableView Width="100%" DataKeyNames="SerialNumber, StudId,Status" ClientDataKeyNames="SerialNumber, StudId,Status"
AllowMultiColumnSorting="false" EnableHeaderContextMenu="true" AutoGenerateColumns="false"
TableLayout="auto">
<Columns>
<telerik:GridBoundColumn DataField="DateJoin" HeaderText="Date Of Joining" SortExpression="DateReceived"
Visible="true" DataFormatString="{0:MM/dd/yyyy}" />
<telerik:GridBoundColumn DataField="SerialNumber" HeaderText="Serial #" SortExpression="SerialNumber"
Visible="true" DataFormatString="{0:N0}" />
<telerik:GridBoundColumn DataField=" StudId " HeaderText="Student ID #" SortExpression=" StudId "
Visible="true" />
<telerik:GridBoundColumn DataField="Status" HeaderText="Status" SortExpression="Status"
Visible="true" />
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
<ClientSettings AllowColumnsReorder="true" ReorderColumnsOnClient="true" EnableRowHoverStyle="true">
<Scrolling AllowScroll="false" SaveScrollPosition="true" UseStaticHeaders="true" />
<Resizing AllowColumnResize="true" EnableRealTimeResize="false" ResizeGridOnColumnResize="false"
ClipCellContentOnResize="false" AllowResizeToFit="true" />
<Selecting AllowRowSelect="true" />
<ClientEvents OnRowDblClick="RowDblClick" OnRowSelected="RowSelected" OnRowContextMenu="onRowContextMenu"
OnColumnHidden=" rgSchoolColumnHidden" OnColumnShown=" rgSchoolColumnShown" />
</ClientSettings>
<HeaderContextMenu EnableScreenBoundaryDetection="true" EnableAutoScroll="true" />
        </telerik:RadGrid>
So,the users can sort,Hide,Group the columns.The sorting of the column will be done in the SP itself,based on the column(header selected).So,From the SP though get the correctly sorted data(i.e., though the DataSource is updated correctly),the grid is not STILL NOT showing the correctly sorted data.Please find the related server side code below : 
protected void rgSchool_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
{
try
{
ViewState["CurrentPageIndex"] = rgSchool.CurrentPageIndex + 1;
//Getting the sorted,......data through SP.and storing in response object.
IEnumerable<rgSchoolReadRecord> response = WCFObj.Read(out recordCount, request);
rgSchool.DataSource = null;
rgSchool.DataSource = response;//DataSorce is updating correctly
rgSchool.VirtualItemCount = recordCount;
rgSchool.CurrentPageIndex = request.PageIndex - 1;
WCFObj.Close();
//Set the current paging and sorting in View state
ViewState["CurrentPageIndex"] = request.PageIndex;
ViewState["PageSize"] = request.PageSize;
ViewState["CurrentSort"] = request.OrderBy;
ViewState["SortDescending"] = request.Desc;
ViewState["rgSchoolSearchRequestObjet"] = request;
ViewState["recordCount"] = recordCount;
}}
| 
             | 



<
telerik:RadGrid ID="PrnHistoryGrid" runat="server"
GridLines="None" AllowPaging="true" AllowSorting="true" OnExcelMLExportRowCreated="PrnHistoryGrid_ExcelMLExportRowCreated" OnExcelMLExportStylesCreated="PrnHistoryGrid_ExcelMLExportStylesCreated" OnItemCreated="PrnHistoryGrid_ItemCreated" OnNeedDataSource="PrnHistoryGrid_NeedDataSource" OnPdfExporting="PrnHistoryGrid_PdfExporting" OnSortCommand="PrnHistoryGrid_SortCommand" >
<ExportSettings FileName="PrnHistoryData" OpenInNewWindow="true" IgnorePaging="true" ExportOnlyData="true">
<Excel Format="ExcelML" FileExtension="xls"/>
<Pdf FontType="Subset" AllowPrinting="true" PaperSize="Letter" />
</ExportSettings>
<MasterTableView AutoGenerateColumns="false" >
<RowIndicatorColumn>
<HeaderStyle Width="70px" />
</RowIndicatorColumn>
<ExpandCollapseColumn>
<HeaderStyle Width="70px" />
</ExpandCollapseColumn>
<Columns>
<telerik:GridBoundColumn HeaderText="Req No" DataField="TRKNO" UniqueName="TRKNO" ReadOnly="True" SortExpression="TRKNO" HeaderButtonType="TextButton" >
<HeaderStyle Width="3px" />
<ItemStyle Width="3px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText="Job" DataField="JOB" UniqueName="JOB" ReadOnly="True" SortExpression="JOB" HeaderButtonType="TextButton">
<HeaderStyle Width="3px" />
<ItemStyle Width="3px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText="Pgm No" DataField="PGMNO" UniqueName="PGMNO" ReadOnly="True" SortExpression="PGMNO" HeaderButtonType="TextButton" >
<HeaderStyle Width="2px" />
<ItemStyle Width="2px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText="Pgm loc" DataField="PGMLOC" UniqueName="PGMLOC" ReadOnly="True" SortExpression="PGMLOC" HeaderButtonType="TextButton" >
<HeaderStyle Width="5px" />
<ItemStyle Width="5px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText="Service StDate" DataField="STDATE" UniqueName="STDATE" DataFormatString="{0:MM/dd/yyyy}" ReadOnly="true" SortExpression="STDATE" HeaderButtonType="TextButton">
<HeaderStyle Width="15px" />
<ItemStyle Width="15px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText="Service EndDate" DataField="ENDDATE" UniqueName="ENDDATE" DataFormatString="{0:MM/dd/yyyy}" ReadOnly="true" SortExpression="ENDDATE" HeaderButtonType="TextButton">
<HeaderStyle Width="15px" />
<ItemStyle Width="15px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText="Req Hrs" DataField="REQHRS" UniqueName="REQHRS" ReadOnly="true" SortExpression="REQHRS" HeaderButtonType="TextButton">
<HeaderStyle Width="5px" />
<ItemStyle Width="5px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText="Paid Hrs" DataField="YTDHRS" UniqueName="YTDHRS" ReadOnly="true" SortExpression="YTDHRS" HeaderButtonType="TextButton">
<HeaderStyle Width="5px" />
<ItemStyle Width="5px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText="Paid Mins" DataField="YTDMINS" UniqueName="YTDMINS" ReadOnly="true" SortExpression="YTDMINS" HeaderButtonType="TextButton">
<HeaderStyle Width="5px" />
<ItemStyle Width="5px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText="Rec Stat" DataField="STATUS" UniqueName="STATUS" ReadOnly="true" SortExpression="STATUS" HeaderButtonType="TextButton" >
<HeaderStyle Width="1px" />
<ItemStyle Width="1px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText="Req Date" DataField="SENDDATE" UniqueName="SENDDATE" DataFormatString="{0:MM/dd/yyyy}" ReadOnly="true" SortExpression="SENDDATE" HeaderButtonType="TextButton">
<HeaderStyle Width="15px" />
<ItemStyle Width="15px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText="Stat of Req" DataField="STATUSF" UniqueName="STATUSF" ReadOnly="true" SortExpression="STATUSF" HeaderButtonType="TextButton">
<HeaderStyle Width="1px" />
<ItemStyle Width="1px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText="Approved Date" DataField="APPRDATE" UniqueName="APPRDATE" DataFormatString="{0:MM/dd/yyyy}" ReadOnly="true" SortExpression="APPRDATE" HeaderButtonType="TextButton">
<HeaderStyle Width="10px" />
<ItemStyle Width="10px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText="Approver Id" DataField="APPRNAME" UniqueName="APPRNAME" ReadOnly="true" SortExpression="APPRNAME" HeaderButtonType="TextButton" >
<HeaderStyle Width="70px" />
<ItemStyle Width="70px" />
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
<ClientSettings EnableRowHoverStyle="True">
</ClientSettings>
</telerik:RadGrid>
bool
IsExport1 = false;
protected void btnExporttoPdf1_Click(object sender, EventArgs e)
{
RadGrid HistoryGrid = (RadGrid)PrnHistoryReport.FindItemByValue("HistoryData").FindControl("PrnHistoryGrid");
HistoryGrid.DataSource = Session[
"PrnHistoryRecord"];
HistoryGrid.DataBind();
IsExport1 =
true;
HistoryGrid.MasterTableView.BorderStyle =
BorderStyle.None;
HistoryGrid.MasterTableView.GridLines =
GridLines.Vertical;
HistoryGrid.MasterTableView.Columns[0].HeaderStyle.Width =
Unit.Pixel(40);
HistoryGrid.MasterTableView.Columns[1].HeaderStyle.Width =
Unit.Pixel(40);
HistoryGrid.MasterTableView.Columns[2].HeaderStyle.Width =
Unit.Pixel(40);
HistoryGrid.MasterTableView.Columns[3].HeaderStyle.Width =
Unit.Pixel(40);
HistoryGrid.MasterTableView.Columns[4].HeaderStyle.Width =
Unit.Pixel(55);
HistoryGrid.MasterTableView.Columns[5].HeaderStyle.Width =
Unit.Pixel(55);
HistoryGrid.MasterTableView.Columns[6].HeaderStyle.Width =
Unit.Pixel(40);
HistoryGrid.MasterTableView.Columns[7].HeaderStyle.Width =
Unit.Pixel(40);
HistoryGrid.MasterTableView.Columns[8].HeaderStyle.Width =
Unit.Pixel(40);
HistoryGrid.MasterTableView.Columns[9].HeaderStyle.Width =
Unit.Pixel(40);
HistoryGrid.MasterTableView.Columns[10].HeaderStyle.Width =
Unit.Pixel(55);
HistoryGrid.MasterTableView.Columns[11].HeaderStyle.Width =
Unit.Pixel(40);
HistoryGrid.MasterTableView.Columns[12].HeaderStyle.Width =
Unit.Pixel(40);
HistoryGrid.MasterTableView.Columns[13].HeaderStyle.Width =
Unit.Pixel(40);
HistoryGrid.MasterTableView.ExportToPdf();
}
Seems like data is exporting but not header columns.
Our webapplication throws multiple exceptions at every request.
System.Web.HttpException (0x80004005): This is an invalid webresource request. at System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
The application is installed on a Windows 2008 Server with IIS7. 
  <system.web>      <siteMap defaultProvider="InPageSiteMap">          <providers>              <clear/>              <add name="InPageSiteMap" type="Wervis.Business.Services.InPage.InPageStaticSiteMapProvider"/>          </providers>      </siteMap>  <customErrors mode="Off" defaultRedirect="~/Error">    <error statusCode="404" redirect="~/NotFound"/>    <error statusCode="500" redirect="~/Error"/>  </customErrors>      <compilation debug="true" targetFramework="4.0">          <assemblies>              <add assembly="Telerik.Web.UI"/>              <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>              <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>              <add assembly="System.Drawing.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>              <add assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>              <add assembly="System.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></assemblies>      </compilation>      <authorization>          <allow users="*"/>      </authorization>      <pages maintainScrollPositionOnPostBack="true">          <controls>              <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>              <add tagPrefix="Wervis" namespace="Wervis.InPage.Web.Controls" assembly="Wervis.InPage.Web.Controls"/>              <add tagPrefix="EventOn" namespace="EventOn.Controls.Event" assembly="EventOn.Controls.Event"/>          </controls>      </pages>  <!-- Start offline, used by IIS6 --><!--      <httpHandlers>          <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="true"/>          <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false"/>          <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false"/>          <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false"/>          <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>      </httpHandlers>      <httpModules>          <add name="Wervis.HttpModule.InPage" type="Wervis.HttpModule.InPage.Rewriter,Wervis.HttpModule.InPage"/>          <add name="RadCompression" type="Telerik.Web.UI.RadCompression"/>          <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule"/>      </httpModules>  --><!-- End offline, used by IIS6 -->         <webServices >          <protocols >              <add name="HttpGet" />          </protocols >      </webServices>      <httpRuntime useFullyQualifiedRedirectUrl="false" maxRequestLength="40960" executionTimeout="45" />  </system.web><!-- Used by IIS7 -->  <system.webServer>      <validation validateIntegratedModeConfiguration="true"/>      <modules>          <remove name="RadUploadModule"/>    <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" preCondition="integratedMode"/>          <remove name="RadCompression"/>    <add name="RadCompression" type="Telerik.Web.UI.RadCompression" preCondition="integratedMode"/>    <add name="Wervis.HttpModule.InPage" type="Wervis.HttpModule.InPage.Rewriter,Wervis.HttpModule.InPage" preCondition="integratedMode"/>              </modules>      <handlers>    <remove name="ScriptResource"/>    <add name="ScriptResource" path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="integratedMode"  />    <remove name="*_AppService.axd_"/>    <add name="*_AppService.axd_*" path="*_AppService.axd" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" preCondition="integratedMode,runtimeVersionv4.0"/>    <remove name="*.asmx_*"/>    <add name="*.asmx_*" path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" preCondition="integratedMode,runtimeVersionv4.0"/>    <remove name="ChartImage_axd"/>             <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode"/>    <remove name="Telerik_Web_UI_SpellCheckHandler_axd"/>    <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode"/>    <remove name="Telerik_Web_UI_DialogHandler_aspx"/>    <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode"/>    <remove name="Telerik_RadUploadProgressHandler_ashx"/>    <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode"/>    <remove name="Telerik_Web_UI_WebResource_axd"/>    <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode"/>      </handlers>  </system.webServer>
We think the exceptions are related to the Telerik embedded resources. Can anyone help us to solve this problem?
