Completed
Last Updated: 06 Jun 2019 13:37 by ADMIN
Release R2 2019 SP1 (LIB 2019.2.610)
Lorenzo
Created on: 23 May 2019 10:39
Category:
Type: Bug Report
1
Error when changing CardView datasource property

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

1 comment
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 23 May 2019 12:13
Hello, Lorenzo,  

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

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.