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

Help with Custom view and others.

4 Answers 82 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Rocky
Top achievements
Rank 1
Rocky asked on 16 Jul 2010, 08:36 AM
Greetings,

   I have used rad datagrid and it is working fine. But I have basically 1 problems that I felt very hard to implement.

1.  Using Custom Layout like in the blog
http://blogs.telerik.com/blogs/posts/09-02-03/how_to_use_custom_row_layouts_in_radgridview_for_wpf.aspx
but to start with I have strange error like
The property 'ColumnName' was not found in type 'GridViewCell'.
so I could not start to edit the example in the blog.  Can we edit the Values of rows that is inside the Custom row layout and also save it to the database also? Can the Custom layout hold other edit templetes like Combobox or masked text box in columns like Sex where there are only two option like male or female or in Phone number. Saving the edit on database also should be on focus. Because
dataContext.SubmitChanges();
was working fine on other project but under exactly same condition it is not working now.

If you want to go through my project here is a link of it.
http://www.quickfilepost.com/download.do?get=2637bc0276d4b31e8d85d32823873e75

4 Answers, 1 is accepted

Sort by
0
Accepted
Milan
Telerik team
answered on 16 Jul 2010, 09:10 AM
Hello Rocky,

The post that you are referring to is a very old one and the techniques applied there are not compatible with our latest version. Could you please take a look at our Custom Row Layout sample. The sample is located under GridView -> Appearance.


Kind regards,
Milan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Vic
Top achievements
Rank 1
Iron
answered on 11 Aug 2012, 02:47 AM
Hello,
I am looking for current guidance on implementing editable custom row layouts.  The current Custom Row Layout sample you mentioned is not editable, or am I missing something?

I'm using the latest build (2012.2.725.40)
Thanks...
0
Vlad
Telerik team
answered on 13 Aug 2012, 05:50 AM
Hello,

 Have you tried to place TextBoxes and bind them to the properties you want to edit?

Regards,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Vic
Top achievements
Rank 1
Iron
answered on 21 Aug 2012, 04:12 PM
Hello Vlad,
Thanks for your reply.  Yes, I can successfully use textboxes and other controls (RadComboBox) that will allow me to edit the bound properties.  However, with that alone I lose certain functionality that is essential for our requirements, namely, validation indicators and row selection.  Looking at the default control template for GridViewRow, I thought perhaps I could replace just the telerik:DataCellsPresenter element with my custom row container, leaving all the other elements intact.  While this seems to get me closer to my goal, I'm still having trouble with the validation error indicators.  Can you steer me in the right direction?

Appreciate anyone's help here...
Tags
GridView
Asked by
Rocky
Top achievements
Rank 1
Answers by
Milan
Telerik team
Vic
Top achievements
Rank 1
Iron
Vlad
Telerik team
Share this question
or