Hello,
I have 2 models with properties. I get an error when changing the datasource
I assign them in the following way:
CardView1.DataSource = BindingList<Model1>
CardView1.Datasource = BindingList2>Model2>
When i swap the datasource i get the following error: "There is no property descriptor corresponding to property name: Code"
"Code" is a property only present in the first model (Model1).
Seems like i have to reset some properties before swapping datasource? i already tried CardView1.DataSource = null before assigning Model2 but got same error
I have logged it in our feedback portal by making this thread public. You can track its progress, subscribe for status changes and add your comments on the following link - feedback item.
I have also updated your Telerik points.
Currently, the possible solution that I can suggest is to clear the items in the CardTemplate before setting the DataSource.
this
.radCardView1.CardTemplate.Items.Clear();
this
.radCardView1.DataSource = items;
I hope this information helps. If you need any further assistance please don't hesitate to contact me.
Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik