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

[Solved] ToExcelML Grid Export Methods are not Members of RadGridView

1 Answer 85 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Fred
Top achievements
Rank 1
Fred asked on 02 Dec 2009, 09:58 PM
Not sure why I'm getting this problem.

I can't use any of the "Export" methods that show up in the Demo or these examples:

Error    100    'ToExcelML' is not a member of 'Telerik.Windows.Controls.RadGridView'.

No matter what it try it doesn't show up.

I'm referencing: Telerik.Windows.Control.GridView .NET Version: 2009.3.1103.1030  C:\Program Files\Telerik\RadControls...Q3 2009\Binaries\Silverlight\Telerik.windows.controls.GridView.dll

    Private Sub btnExportExcel_Click(ByVal sender As ObjectByVal e As System.Windows.RoutedEventArgs) Handles btnExportExcel.Click 
        Dim content As String = "" 
        Dim extension As String = "" 
        Dim dialog As New SaveFileDialog() 
 
        If dialog.ShowDialog() = True Then 
            Using stream As System.IO.Stream = dialog.OpenFile() 
                content = gvResults.ToExcelML 
 
...
                stream.Close() 
            End Using 
        End If 
    End Sub 

<navigation:Page  
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"  
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"  
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
           mc:Ignorable="d" 
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation" 
           xmlns:Telerik_Windows_Controls_MaskedTextBox="clr-namespace:Telerik.Windows.Controls.MaskedTextBox;assembly=Telerik.Windows.Controls.Input"  
           xmlns:telerikGridView="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"   
...> 
 
<telerikGridView:RadGridView x:Name="gvResults" RowIndicatorVisibility="Collapsed"   
                IsReadOnly="True" AutoGenerateColumns="False" CanUserFreezeColumns="False" Margin="8,145,40,8" > 
... 
</ telerikGridView:RadGridView> 






1 Answer, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 03 Dec 2009, 06:53 AM
Hi,

These are extension methods and you need to include Telerik.Windows.Controls namespace.

Greetings,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Fred
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or