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

[Solved] ToHtml() does not work with columns using Binding object

1 Answer 64 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.
Evan
Top achievements
Rank 1
Evan asked on 22 Oct 2009, 01:16 PM
My grid has multiple columns that use a Binding (DataMemberBinding) object instead of a UniqueName.  The Binding object will get a value from a Dictionary object in my bound data.  The grid displays the the data perfectly.  However, when I call grid.ToHtml(), the cell data looks like it is just calling a ToString() on the Dictionary instead of using the Binding object.  Am I missing something?

Binding b = new Binding();
b.Path = new PropertyPath("DictionaryProperty");
b.Converter = new DictionaryConverter();

GridViewDataColumn col = new GridViewDataColumn();
col.Header = "My Column";
col.DataMemberBinding = b;



1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 26 Oct 2009, 07:49 AM
Hi Evan,

The export can work with columns with Binding however does not support IValueConverter in our current official release - this will be supported in our Q3.

All the best,
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
Evan
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or