This is a migrated thread and some comments may be shown as answers.

RadGrid using Webservice binding but not export data.(Xls,csv)

4 Answers 61 Views
Grid
This is a migrated thread and some comments may be shown as answers.
nanthakumar thangavel
Top achievements
Rank 1
nanthakumar thangavel asked on 13 Jul 2010, 05:26 AM
RadGrid using Webservice binding with clientside cache but not export data.(Xls,csv)


This is my code:

<telerik:RadGrid
 ID="RadGrid2" AllowSorting="true" AllowPaging="true"AllowFilteringByColumn="true"
            AutoGenerateColumns="false" runat="server">
            <MasterTableView CommandItemDisplay="Top">
                <CommandItemSettings ShowExportToCsvButton="True"
                    ShowExportToExcelButton="True" />
                <Columns>
                    <telerik:GridBoundColumn DataField="Id"HeaderText="Id" />
                    <telerik:GridBoundColumn DataField="Name"HeaderText="Name" />
                      
                </Columns>
  
<PagerStyle AlwaysVisible="True"></PagerStyle>
            </MasterTableView>
            <PagerStyle AlwaysVisible="true" />
            <ClientSettings>
                <DataBinding Location="~/mywebservice.asmx" EnableCaching="true"
                    SelectMethod="GetFacilityListCH"  />
            </ClientSettings>
        </telerik:RadGrid>

4 Answers, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 13 Jul 2010, 07:54 AM
Hello Nanthakumar,

You need server binding to export RadGrid. When bound on client RadGrid does not persist data that will be used when export on server.

Greetings,
Nikolay
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
nanthakumar thangavel
Top achievements
Rank 1
answered on 13 Jul 2010, 08:05 AM
Hi

Thanks for reply ..

i bind server side but i face performance issue. so that i want to improve 
performance and also export
i use cache concept  or any other method to improve performance ?
0
Nikolay Rusev
Telerik team
answered on 14 Jul 2010, 04:25 PM
Hello Nanthakumar,

Export is server-side functionality, thus it need to be performed on server-side.
You can check the following articles for hints on performance:
http://www.telerik.com/help/aspnet-ajax/grdsavinggridviewstateinsession.html
http://www.telerik.com/help/aspnet-ajax/grdviewstateoptimization.html
http://www.telerik.com/help/aspnet-ajax/grdviewstatereductiontechniques.html

Best wishes,
Nikolay
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
nanthakumar thangavel
Top achievements
Rank 1
answered on 15 Jul 2010, 04:01 AM
Thank you very much.
Tags
Grid
Asked by
nanthakumar thangavel
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
nanthakumar thangavel
Top achievements
Rank 1
Share this question
or