This question is locked. New answers and comments are not allowed.
Hello,
I've been having trouble getting this example to work in my own environment. The Data Rows show up in the grid, however no columns are mapped. Below you will find the Xaml and code behind. I copied and pasted the MyDataRow class from the example on the demo website... http://demos.telerik.com/silverlight/#GridView/DataSources
Version of Telerik.Windows.Controls.GridView.dll is 2011.3.1220.1040. Does this version of the Telerik controls support the dynamic binding?
XAML
CodeBehind
Thanks,
Michael
I've been having trouble getting this example to work in my own environment. The Data Rows show up in the grid, however no columns are mapped. Below you will find the Xaml and code behind. I copied and pasted the MyDataRow class from the example on the demo website... http://demos.telerik.com/silverlight/#GridView/DataSources
Version of Telerik.Windows.Controls.GridView.dll is 2011.3.1220.1040. Does this version of the Telerik controls support the dynamic binding?
XAML
<
Grid
x:Name
=
"layoutroot"
Background
=
"white"
>
<
telerik:RadGridView
x:Name
=
"RadGridView1"
RowIndicatorVisibility
=
"Collapsed"
/>
</
Grid
>
CodeBehind
ObservableCollection<MyDataRow> data =
new
ObservableCollection<MyDataRow>();
public
GridViewTest()
{
InitializeComponent();
RadGridView1.ItemsSource = data;
}
public
void
AddDataRow(Node root)
{
MyDataRow subscribers=
new
MyDataRow();
clients[
"TimeStamp"
] = DateTime.Now;
foreach
(var subscriber
in
root.Subscribers)
{
subscribers[subscriber.ShortName] = subscriber.DoubleValue;
}
data.Add(clients);
}
}
Thanks,
Michael