是不是这句话引起的,demo是这样写的,
$("#<%=C1GridView1.ClientID%>").c1gridview("exportGrid", fileName, type, excelSetting, url);
}
我的C1GridView名称为vsf1 我改成
$("#<%=vsf1.ClientID%>").c1gridview("exportGrid", fileName, type, excelSetting, url);
}这句代码会出错,后来我改成
$("#vsf1").c1gridview("exportGrid", fileName, type, excelSetting, url);
能导成功,就是没有表体,只有表头和合计
我的C1GridView代码如下
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<wijmo:C1GridView ID="vsf1" runat="server" AutogenerateColumns="False" AllowColSizing="True" AllowVirtualScrolling="False" Culture="zh-CN" DataSourceID="SqlDataSource1" FreezingMode="None" RowHeight="19" ShowFilter="True" ScrollMode="Auto" ShowFooter="True" StaticColumnIndex="-1" StaticRowIndex="-1" ClientSelectionMode="SingleRow" style="top: 0px; left: 0px" AllowCustomPaging="True" ClientEditingUpdateMode="Manual" LoadingText="正在加载....." OnClientCurrentCellChanging="currentCellChanging" >
<ScrollingSettings Mode="Auto">
</ScrollingSettings>
<FooterStyle BorderStyle="Solid" />
</wijmo:C1GridView>
</ContentTemplate>
</asp:UpdatePanel>
|