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

Cardview Style for Gridview

4 Answers 75 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Caipus
Top achievements
Rank 1
Caipus asked on 21 Sep 2009, 08:47 AM
Hi,

is there a working example for styling the GridRow into somthing like a cardview.
I watched http://tv.telerik.com/wpf/radgridview/custom-formatting-radgridview-rows but there is no source available.

Best regards
Markus

4 Answers, 1 is accepted

Sort by
0
Missing User
answered on 22 Sep 2009, 11:42 AM
Hi Caipus,

You can use this blog post as a reference:
http://blogs.telerik.com/johnkellar/posts/09-02-03/how_to_use_custom_row_layouts_in_radgridview_for_wpf.aspx

Hope this helps.

Sincerely yours,
Anastasia
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Caipus
Top achievements
Rank 1
answered on 23 Sep 2009, 07:15 AM
Thank you Anastasia, exactly what i need.
I ask me why i didn't find it myself? But i couldn't find a link between the tv-stream and this blog.

Have a nice day
Markus

0
Caipus
Top achievements
Rank 1
answered on 23 Sep 2009, 09:57 AM
Hi again,

i tested the example of the blog and it works fine for normal cells.
But there is no example on how to do the bindings with a combobox

This is how my grid cols look like:
                        <telerik:RadGridView.Columns> 
                            <telerik:GridViewDataColumn  Width="1*" Header="Surename"  DataMemberBinding="{Binding Surename}" /> 
                            <telerik:GridViewDataColumn  HeaderText="Firstname" Width="1*" DataMemberBinding="{Binding Firstname}" /> 
                            <telerik:GridViewComboBoxColumn HeaderText="Role" UniqueName="Role"  
                                                           SelectedValueMemberPath="Id" 
                                                           DisplayMemberPath="Funktion" Width="1*" 
                                                           DataMemberBinding="{Binding RoleId}" /> 
                        </telerik:RadGridView.Columns> 

Do you have a further example, please?

Thank you
Markus


0
Kalin Milanov
Telerik team
answered on 25 Sep 2009, 11:03 AM
Hello Caipus,

In actuality there is no need to use GridViewCell to present the data. What you can to is set any control in the template of the row and bind it to the property of your choice.

In your case:
<ComboBox ItemsSource="{Binding RoleId}" DisplayMemberPath="Funktion" /> 

Best wishes,
Kalin Milanov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Caipus
Top achievements
Rank 1
Answers by
Missing User
Caipus
Top achievements
Rank 1
Kalin Milanov
Telerik team
Share this question
or