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

CSV exporting not building in Radgrid

1 Answer 59 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Brad
Top achievements
Rank 1
Brad asked on 17 Oct 2008, 06:29 AM

Hi,

For some reason i've suddenly got these Visual Studio 2005 errors:

Element 'csv' is not supported
Type 'Telerik.Web.UI.GridExportSettings' does not have a public property named 'CSV'.

when i build my project. It's been working fine for ages, and I can't see anything that has changed since the last good build.
It seems that the CSV exporting functionality has disappeared. What could have done this?
I usualy validate against XHTML 1.0 Transitional, but none of the others work either. I've re-registered the controls and relaunched VS.
This error seems to appear in all the .aspx files that use the grid. Also, intellisense doesn't see the <csv>, but it DOES see the <pdf> & <Excel>
Can  anyone suggest what i can do?

My markup is:

...
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
...

<telerik:RadGrid ID="gridUsers" runat="server" AllowPaging="True" AllowSorting="True"
        AutoGenerateColumns="False" GridLines="None" OnPageIndexChanged="gridUsers_PageIndexChanged"
        OnNeedDataSource="gridUsers_NeedDataSource">
        <PagerStyle Mode="NextPrevAndNumeric" NextPageText="Next" PrevPageText="Prev" />
        <ExportSettings>
            <Pdf FontType="Subset" PaperSize="Letter" />
            <Excel Format="Html" />
            <Csv ColumnDelimiter="Comma" RowDelimiter="NewLine" />  <- FAILING HERE!!!
        </ExportSettings>
        <MasterTableView ClientDataKeyNames="Login" CommandItemDisplay="Top" CurrentResetPageIndexAction="SetPageIndexToFirst"
            DataKeyNames="Login" Dir="LTR" Frame="Border" TableLayout="Auto">
            <CommandItemTemplate>
  ...
            </CommandItemTemplate>
            <Columns>
  ...
            </Columns>
            <ExpandCollapseColumn CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType"
                Resizable="False" Visible="False">
                <HeaderStyle Width="20px" />
            </ExpandCollapseColumn>
            <RowIndicatorColumn CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType"
                Visible="False">
                <HeaderStyle Width="20px" />
            </RowIndicatorColumn>
            <EditFormSettings>
                <EditColumn CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType">
                </EditColumn>
            </EditFormSettings>
        </MasterTableView>
        <ClientSettings>
            <Selecting AllowRowSelect="True" />
            <ClientEvents OnRowDblClick="gridUsers_OnRowDblClick" OnRowSelected="RowSelected" />
        </ClientSettings>
</telerik:RadGrid>

thanks

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 17 Oct 2008, 08:24 AM
Hello Brad,

I suppose you may accidentally upgraded to an older version.

I tried to reproduce this behavior with the latest release but unfortunately without avail. For your convenience I attached my test project (together with the assemblies) to the thread.

Regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Brad
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or