<telerik:RadGrid runat="server" ID="rgdThongTin" Height="350px" Width="100%" AutoGenerateColumns="false" GridLines="None" onneeddatasource="rgdThongTin_NeedDataSource" ondeletecommand="rgdThongTin_DeleteCommand" onupdatecommand="rgdThongTin_UpdateCommand" oninsertcommand="rgdThongTin_InsertCommand"> <MasterTableView DataKeyNames="STT" AllowMultiColumnSorting="True" Width="100%"> <Columns> <telerik:GridBoundColumn DataField="STT" UniqueName="STT" HeaderText="STT" Visible="false"> <HeaderStyle Width="0px" HorizontalAlign="Left" VerticalAlign="Middle" Font-Bold="True" /> <ItemStyle Width="0px" HorizontalAlign="Left" VerticalAlign="Middle" /> </telerik:GridBoundColumn> <telerik:GridEditCommandColumn ButtonType="LinkButton" UniqueName="EditCommandColumn" EditText="Cập nhật"> <HeaderStyle Width="100px" HorizontalAlign="Left" VerticalAlign="Middle" Font-Bold="True" /> <ItemStyle Width="100px" HorizontalAlign="Left" VerticalAlign="Middle" /> </telerik:GridEditCommandColumn> </Columns> <EditFormSettings CaptionFormatString="Edit details for employee with" CaptionDataField="MA_SO"> </EditFormSettings> </MasterTableView> <ClientSettings AllowColumnsReorder="true" EnableRowHoverStyle="true"> <Selecting AllowRowSelect="true" /> <Scrolling AllowScroll="true" UseStaticHeaders="true" /> <ClientEvents OnRowDblClick="RowDblClick" /> </ClientSettings> </telerik:RadGrid>Hi,
I am having a user control in RadAjaxPanel of a content page. Now i want to include an image button in the usercontrol which on clicking should export the page content to a .doc file. i tried this code :
protected void Export(object sender, EventArgs e)
{
HttpContext.Current.Response.Clear();
Response.ContentType = "application/msword";
Response.AddHeader("Content-Disposition", "attachment;filename=Export.doc");
StringBuilder strHTMLContent = new StringBuilder();
strHTMLContent.Append("<html>");
strHTMLContent.Append(lbExp.Text);
strHTMLContent.Append("</html>");
Response.Write(strHTMLContent);
Response.End();
}
This is working fine in a demo application with a single button,shows the download window and exports the content but in my application, it is showing the Sys.WebForms.PageRequestmanager.ParserErrorException owing to the RadAjaxPanel used.
I went through several methods of excluding the controls, etc but none works..
Please help me regarding this..

<telerik:RadGrid ID="rgItems" AllowFilteringByColumn="True" Skin="Windows7"
AllowSorting="True" PageSize="10" ShowFooter="false" AllowPaging="True" AllowCustomPaging="true" runat="server" AutoGenerateColumns="false" GridLines="None" ShowStatusBar="true" EnableLinqExpressions="false" GroupingEnabled="false" Height="320px">
<GroupingSettings CaseSensitive="false" />
<ClientSettings EnableRowHoverStyle="true" AllowColumnsReorder="true" ReorderColumnsOnClient="true" ClientEvents-OnFilterMenuShowing="FilterMenuShowing">
<Scrolling ScrollHeight="235px" AllowScroll="true" UseStaticHeaders="true" />
<Resizing AllowRowResize="False" EnableRealTimeResize="False" ResizeGridOnColumnResize="False" AllowColumnResize="True"></Resizing>
</ClientSettings>
...
...
</telerik:RadGrid>
If I don't hide columns, all works fine and the saved and restored settings are correct. When I hide columns and save settings I see that the width of the saved columns are not correct. If for example I hide the first column and change the size of the second column, when I save I see (in debug) that the width that I have modified is assigned to the hidden column and so all the grid layout is persisted not correctly.
Is there a way to resolve this issue?
Thanks.

