Exporting a GridViewDynamicHyperlink Column

3 posts, 0 answers
  1. Lisa
    Lisa avatar
    35 posts
    Member since:
    May 2011

    Posted 06 May 2011 Link to this post

    Hi - I'm creating my first GridView, and have a question.  I have a column defined as a DynamicHyperlink, and it's working well as far as the link going where I want it to.  However, when I try to export the file, I'm getting this value in the field, it should be a name:

    "WEDSSGVStuPerf.ServiceReference1.StudentPrefBev"

    I have the field defined as below:

     

     

     

    <telerik:GridViewDynamicHyperlinkColumn SortMemberPath="LastName" Header="Student Name" NavigateUrlFormatString="http://localhost:63277/StudentProfileMUTestPage.aspx"

    NavigateUrlMemberPaths="FirstName,LastName" TargetName ="_self" >  

    <telerik:GridViewDynamicHyperlinkColumn.CellTemplate>

     

     

    <DataTemplate>

     

    <TextBlock Text="{Binding spbStudentName}" TextWrapping="Wrap" />

     

     

    </DataTemplate>

     

     

     

    </telerik:GridViewDynamicHyperlinkColumn.CellTemplate>

     

     

    </telerik:GridViewDynamicHyperlinkColumn>

     

     


    What do I need to do to get this to export correctly?

    Thank you
    Lisa
  2. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1128 posts

    Posted 09 May 2011 Link to this post

    Hello Lisa,

    I created a sample project for you (utilizing our latest binaries), but unfortunately I couldn't reproduce such an issue. Would you please send us a simple demo project to help us provide you better support for your case. Meanwhile, you may check my example and see if there are any differences between your approach and mine. Please, excuse me for the inconvenience. 

    All the best,
    Ivan Ivanov
    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
  3. DevCraft banner
  4. Lisa
    Lisa avatar
    35 posts
    Member since:
    May 2011

    Posted 09 May 2011 Link to this post

    Thank you Ivan.  Having a working example helped me understand how this works better.

    I did find my problem.  I had the following on the column definition.

    DataMemberBinding="{Binding}"

     


    I needed to have this: (so that it knew which field to get the value from!)

    DataMemberBinding="{Binding spbStudentName}"

     

Back to Top