Hello,
It seems to have a bug with async binding and GridView.
Indeed when i create a grid view with synchronous binding like that :
Everything works well.
But when i try to make Asynchronous Binding (because the property AssetAnalysers take time to load) like that :
At the first loading the four columns are well generated but when my property AssetAnalysers change (it's a INotifyChangedProperty), the binding seems correct but my columns are not generated. So, the GridView looks like empty (but i have rows).
Where is the problem ?
By the way what's the difference and the correct using of UniqueName, DataMemberBinding and DataMemberPath Properties when you have already a binding on ItemSource.
Thank you in advance for your answer.
G. Moelens
It seems to have a bug with async binding and GridView.
Indeed when i create a grid view with synchronous binding like that :
<telerik:RadGridView Margin="5,5,5,5" IsReadOnly="True" AutoGenerateColumns="False" ColumnsWidthMode="Fill" ShowColumnHeaders="True" ShowGroupPanel="True" ItemsSource="{Binding Path=AssetAnalysers}"> |
<telerik:RadGridView.Columns> |
<telerik:GridViewDataColumn x:Name="AlertTypeColumn" HeaderText="Type" UniqueName="Analyser.Name" Width="100"/> |
<telerik:GridViewDataColumn x:Name="AlertNameColumn" HeaderText="Name" UniqueName="AnalysedObjectId"/> |
<telerik:GridViewDataColumn x:Name="AlertLevelColumn" HeaderText="Level" UniqueName="Level" Width="100"/> |
<telerik:GridViewDataColumn x:Name="AlertMessageColumn" HeaderText="Message" UniqueName="Message"/> |
</telerik:RadGridView.Columns> |
</telerik:RadGridView> |
Everything works well.
But when i try to make Asynchronous Binding (because the property AssetAnalysers take time to load) like that :
<telerik:RadGridView Margin="5,5,5,5" IsReadOnly="True" AutoGenerateColumns="False" ColumnsWidthMode="Fill" ShowColumnHeaders="True" ShowGroupPanel="True" ItemsSource="{Binding Path=AssetAnalysers, IsAsync=true}"> |
<telerik:RadGridView.Columns> |
<telerik:GridViewDataColumn x:Name="AlertTypeColumn" HeaderText="Type" UniqueName="Analyser.Name" Width="100"/> |
<telerik:GridViewDataColumn x:Name="AlertNameColumn" HeaderText="Name" UniqueName="AnalysedObjectId"/> |
<telerik:GridViewDataColumn x:Name="AlertLevelColumn" HeaderText="Level" UniqueName="Level" Width="100"/> |
<telerik:GridViewDataColumn x:Name="AlertMessageColumn" HeaderText="Message" UniqueName="Message"/> |
</telerik:RadGridView.Columns> |
</telerik:RadGridView> |
At the first loading the four columns are well generated but when my property AssetAnalysers change (it's a INotifyChangedProperty), the binding seems correct but my columns are not generated. So, the GridView looks like empty (but i have rows).
Where is the problem ?
By the way what's the difference and the correct using of UniqueName, DataMemberBinding and DataMemberPath Properties when you have already a binding on ItemSource.
Thank you in advance for your answer.
G. Moelens