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

RadCardView bound mode

5 Answers 95 Views
CardView
This is a migrated thread and some comments may be shown as answers.
Tyler
Top achievements
Rank 1
Tyler asked on 28 Sep 2016, 02:33 PM

I have a RadCardView that is using a BindingList as the datasource.

Please quide me to a portion of the documentation that shows how to bind to a datasource and still be able to retain the cardview template.

When i bind to this list, it disregards the template that i initially set up.

 

5 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 29 Sep 2016, 11:20 AM
Hello Tyler,

Thank you for writing.

Currently, setting the data source at run time resets the already created layout. However, you can create the desired layout at run-time and save it. To do that open the Customize dialog from the context menu and arrange the items. Then save the layout with the button: Customize Layout Mode

Then you can load the layout after the data source is set: 
this.radCardView1.DataSource = dataSource;
this.radCardView1.CardViewElement.CardTemplate.LoadLayout(@"C:\layout.xml");

Do not hesitate to contact us if you have other questions.
 
Regards,
Dimitar
Telerik by Progress
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
0
Tyler
Top achievements
Rank 1
answered on 30 Sep 2016, 06:22 PM

While I see how to use the Layout Control, this does not seem to be the solution for my scenario.  Let me be more specific, and see if I am missing something.

I want to the saved layout to contain the columns of the cardview.. this does not seem possible.  I have created a simple form with the layout control.  Inside the layout control, i have placed a simple card view with come columns arranged (see picture).  But when I start the project, right click and select "Customize", the columns I created are no longer there and there is no option in the "Customize" window to add any (only options are shown in picture).

Is there a solution to this?  Or is the solution to create a method that moves everything around the way I want?

 

picture: Left: Design view, Right: Runtime view

0
Dimitar
Telerik team
answered on 03 Oct 2016, 09:03 AM
Hi Tyler,

How are you setting the data source in this case, at design-time or at run-time? I am asking you this because setting the data source at least should create a default template. I have attached my test project so you can see how this works there. 

I am looking forward to your reply.
 
Regards,
Dimitar
Telerik by Progress
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
0
HarisB
Top achievements
Rank 1
answered on 20 May 2018, 01:05 PM

Hello!

please any sample cardview with picture.

Regards

0
Dimitar
Telerik team
answered on 21 May 2018, 07:27 AM
Hello Haris,

We have such example in our demo application. The attached image shows where you can find it. 

I hope this will be useful. Let me know if you have additional questions.

Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
CardView
Asked by
Tyler
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Tyler
Top achievements
Rank 1
HarisB
Top achievements
Rank 1
Share this question
or