asp.net - Nothing happens when I click the button for RadGrid export to Excel -


i have simple grid i'm trying export excel when click on excel button in command item display, nothing happens. not automated or need vb behind tell export?

radgrid:

<telerik:radgrid id="grid_curric1" runat="server" datasourceid="sqlcurric1" width="700px" skin="webblue"  cellspacing="0" gridlines="none" >                         <exportsettings>                             <excel format="excelml" />                         </exportsettings>                         <mastertableview autogeneratecolumns="false" datasourceid="sqlcurric1" font-size="medium" commanditemdisplay="top">                             <commanditemsettings showexporttoexcelbutton="true" />                             <columns>                                 <telerik:gridboundcolumn datafield="growth"  headertext="growth"  sortexpression="growth" uniquename="growth">                                 </telerik:gridboundcolumn>                                 <telerik:gridboundcolumn datafield="efficiency"  headertext="efficiency"  sortexpression="efficiency" uniquename="efficiency">                                 </telerik:gridboundcolumn>                                 <telerik:gridboundcolumn datafield="risk" headertext="risk"  sortexpression="risk" uniquename="risk">                                 </telerik:gridboundcolumn>                             </columns>                         </mastertableview>                     </telerik:radgrid> 

you not need code behind use embedded export feature of radgrid. try add page settings , may pdf check if works pdf:

<exportsettings exportonlydata="true" ignorepaging="true">   <pdf pagewidth="210mm" pageheight="297mm" papersize="a4"></pdf>   <excel format="excelml" /> </exportsettings> 

if above not work, grid inside ajax panel , cause export features not working. should read this.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -